Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added forward dash movement during attack animations #472

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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