Better offset for vertical platforms

This commit is contained in:
pennyrigate 2023-02-04 01:58:40 -05:00
parent d3d8b14a3b
commit 2fd0a5c519
3 changed files with 17 additions and 5 deletions

View file

@ -18,6 +18,10 @@ func _ready():
scale.x = 1
left_up_boundry *= 8
right_down_boundry *= 8
#Better offset for vertical platforms
if move_direction == 1:
right_down_boundry -= 5
left_up_boundry -= 1
func _physics_process(delta):
if move_direction == 0: