moving platforms, eh?

This commit is contained in:
Haze Weathers 2024-07-07 20:22:40 -04:00
parent 1c28e4d005
commit 9f42a196e9

View file

@ -39,6 +39,11 @@ func move_side_to_side(delta):
func move_up_and_down(delta): func move_up_and_down(delta):
#Move #Move
position.y += direction * (speed * delta) position.y += direction * (speed * delta)
#fix graphics
if direction < 0.0 and speed >= 30.0:
sprite.position.y = 1.0
else:
sprite.position.y = 2.0
#Switch dir #Switch dir
if position.y >= startpos.y + (right_down_boundary): if position.y >= startpos.y + (right_down_boundary):
direction = -1 direction = -1