Be the first to post for '24_MA_RPG'!

If you’re reading this, there probably aren’t very many posts yet. But don’t worry, you can be the first! Either create a new post or just reply to this one to say ‘hi’.

I’m not recieving responses anywhere. I have an error on my attack animation where after I click the enemy I am in this frozen state at some point in the animation and I move very slowly gliding along the ground unless I double click the trigger in the animation tab. It looks like this attackerror

Hey Brocolli,

Do a bit of debugging by adding a few ‘print’ or Debug.Log functions around the code that changes the trigger. See exactly under what conditions it breaks. Sounds to me like you made a minor mistake that doesn’t check if it’s currently attacking and keeps trying to call the animation again and again.
More specifically double check that the AttackTarget function in the Player.cs file actually sets the lastHitTime to Time.time.
Also make sure you have the proper transitions.

Privacy & Terms