Skip to content

Attack Animations

ElanagaiArivuchelvan edited this page Oct 17, 2023 · 2 revisions

#Animation Render Component UML

image

Adding the Animations

  • Animation when stun effect is the attacking source

image

the code can be used to define various actions for a projectile. First, it attaches an EffectsComponent to the projectile, which is responsible for applying specific effects, in this case, a "stun" effect, to the projectile. Next, it sets up an AnimationRenderComponent called "animator" to handle the rendering of animations associated with the projectile. Two animations, "START_ANIM" and "stun," are added to this component. Finally, the code attaches the "animator" component and a "StunEffectProjectileAnimationController" component to the projectile. The in game animation looks like below: image

  • Animation when slow effect is the attacking source

image Same as the above case this code can be used in the animation rendering, the only difference being the effect slow in this case rather than stun. image

The same code method is used with different animations in the code for effectProjectiles and For them to have a start operation , the TouchAttackComponent class is used.

image

Clone this wiki locally