Skip to content

Conversation

rcarag
Copy link
Contributor

@rcarag rcarag commented Jul 7, 2021

Forum Thread

This PR adds a customizable forward dash movement during attack animations.

This change is not necessary, but it helps enhance the game feel by adding some momentum to the Pig Chef's attacks, as inspired by games like Devil May Cry.

This was implemented by adding the Dasher component to PigChef. Then keyframes for Dasher.dashMagnitude were added to CaneHit.anim and CaneHit2.anim. To customize the dash amount, the designer just has to change the value of Dasher.dashMagnitude using animation keyframes. Finally, the AddDashMovement state action was added to Idle, Walking, IdleAttacking, and WalkAttacking states. AddDashMovement simply adds the value of Dasher.DashMovementVector to Protagonist.movementVector to produce the dashing behavior.

+ added Dasher component to PigChef
+ added keyframes for Dasher.dashMagnitude in CaneHit.anim and CaneHit2.anim
+ added AddDashMovement to Idle, Walking, IdleAttacking, and WalkAttacking states
@ciro-unity ciro-unity added the enhancement New feature or request label Jul 7, 2021
@amel-unity amel-unity self-assigned this Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants