mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-24 00:10:52 +00:00
Implement WaterCrouchMove and WingCrouchMove (and fix an incorrect default value on small crouch height) (#643)
* Add WaterCrouchMove and WingCrouchMove states * Implement WaterCrouchMove and WingCrouchMove * Quick patch for incorrect crouch height im adding this to this branch for this since its literally just a number change lol
This commit is contained in:
@@ -221,13 +221,19 @@ func get_animation_name() -> String:
|
||||
return "CrouchJump"
|
||||
elif player.is_actually_on_floor():
|
||||
if abs(player.velocity.x) >= 5 and not player.is_actually_on_wall():
|
||||
return "CrouchMove"
|
||||
elif player.in_water:
|
||||
return "WaterCrouch"
|
||||
elif player.flight_meter > 0:
|
||||
return "WingCrouch"
|
||||
if player.in_water:
|
||||
return "WaterCrouchMove"
|
||||
elif player.flight_meter > 0:
|
||||
return "WingCrouchMove"
|
||||
else:
|
||||
return "CrouchMove"
|
||||
else:
|
||||
return "Crouch"
|
||||
if player.in_water:
|
||||
return "WaterCrouch"
|
||||
elif player.flight_meter > 0:
|
||||
return "WingCrouch"
|
||||
else:
|
||||
return "Crouch"
|
||||
if player.is_actually_on_floor():
|
||||
if player.skidding:
|
||||
return "Skid"
|
||||
|
||||
Reference in New Issue
Block a user