mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-12-15 15:30:21 -08:00
adjusted player climbing position
This commit is contained in:
parent
9e5d7bd8e6
commit
b8d85d1bb2
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,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 - (8 * player.direction)
|
||||
player.global_position.x = vine.global_position.x - (6 * 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