mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
fixed pipes, being terrible and i hate them
This commit is contained in:
@@ -9,6 +9,7 @@ func enter(_msg := {}) -> void:
|
||||
physics_update(0)
|
||||
|
||||
func physics_update(delta: float) -> void:
|
||||
player.velocity = Vector2.ZERO
|
||||
player.global_position += (ENTER_SPEED * (player.pipe_enter_direction * player.pipe_move_direction)) * delta
|
||||
if player.pipe_enter_direction.x != 0:
|
||||
player.sprite.speed_scale = 1
|
||||
|
Reference in New Issue
Block a user