Project Update: Player animations attack

I start again from where I stopped yesterday, after the movement animations today it’s time for the attack animation and its particle effect.

The procedure is the same as yesterday’s article, the only difference is the Sword Arc animation that being another sprite that requires inserting a new variable in the code to manage it and work on the timing of the animations because they work well together.

Very important, you have to pay attention to the instruction “GetComponentChild” that considers only the first element it finds, for this reason just add this instruction before to easily solve the problem.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store