mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-12-05 19:20:19 -08:00
Re-aligned player climbing position
the player's position while climbing is now set correctly to match the original game.
This commit is contained in:
parent
33bb2f19f5
commit
8e87ad99a3
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ func physics_update(_delta: float) -> void:
|
|||
if player.input_direction != 0 and climb_direction == 0 and not cutscene:
|
||||
player.direction = -player.input_direction
|
||||
player.sprite.scale.x = player.direction
|
||||
player.global_position.x = vine.global_position.x - (6 * player.direction)
|
||||
player.global_position.x = vine.global_position.x - (5 * player.direction)
|
||||
if not cutscene and not auto_climb:
|
||||
climb_direction = sign(Input.get_axis("move_up" + "_" + str(player.player_id),"move_down" + "_" + str(player.player_id)))
|
||||
if vine.can_tele and player.global_position.y - 64 < vine.top_point and climb_direction == -1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue