mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
Quick fixes for optional animations (#612)
* Quick fix for flipped Jump/RunJump anims accidentally used the condition the wrong way, my bad LOL * >= moment so thats why it was playing the fall animation for a single frame * Reverted attempted fixes accidentally left in for CrouchBump
This commit is contained in:
@@ -212,10 +212,10 @@ func get_animation_name() -> String:
|
||||
if player.kicking and player.can_kick_anim:
|
||||
return "Kick"
|
||||
if player.crouching and not wall_pushing:
|
||||
if player.bumping:
|
||||
if player.bumping and player.can_bump_crouch:
|
||||
return "CrouchBump"
|
||||
elif player.is_on_floor() == false:
|
||||
if player.velocity.y > 0:
|
||||
if player.velocity.y >= 0:
|
||||
return "CrouchFall"
|
||||
elif player.velocity.y < 0:
|
||||
return "CrouchJump"
|
||||
@@ -275,23 +275,23 @@ func get_animation_name() -> String:
|
||||
if player.has_jumped:
|
||||
if player.bumping and player.can_bump_jump:
|
||||
if abs(player.velocity_x_jump_stored) < player.RUN_SPEED - 10:
|
||||
return "RunJumpBump"
|
||||
else:
|
||||
return "JumpBump"
|
||||
else:
|
||||
return "RunJumpBump"
|
||||
elif player.velocity.y < 0:
|
||||
if player.is_invincible:
|
||||
return "StarJump"
|
||||
elif abs(player.velocity_x_jump_stored) < player.RUN_SPEED - 10:
|
||||
return "RunJump"
|
||||
else:
|
||||
return "Jump"
|
||||
else:
|
||||
return "RunJump"
|
||||
else:
|
||||
if player.is_invincible:
|
||||
return "StarFall"
|
||||
elif abs(player.velocity_x_jump_stored) < player.RUN_SPEED - 10:
|
||||
return "RunJumpFall"
|
||||
else:
|
||||
return "JumpFall"
|
||||
else:
|
||||
return "RunJumpFall"
|
||||
else:
|
||||
# guzlad: Fixes characters with fall anims not playing them, but also prevents old characters without that anim not being accurate
|
||||
if !player.sprite.sprite_frames.has_animation("Fall"):
|
||||
|
Reference in New Issue
Block a user