1. Home
  2. Docs
  3. FAQ
  4. Attacks are not doing damage. Hits don’t register.

Attacks are not doing damage. Hits don’t register.

This problem most likely occurs after importing new animations.

The current animations all have animation events added to them. These events tell the code when it is time to check if something was hit. Preferably you want this to happen at a certain time in the animation. For example when an arm or leg is completely stretched out. When working with new animations, you need to add these events manually.

In the project window, browse to the file that contains your animation. Click on it and scroll all the way down in the inspector window, until you see a tab called “Events”. When you expand this tab you see a timeline. On this timeline you can add events. In the “Function” textfield type “Check4Hit”. Hit “Apply” and the problem should be solved.