Better offset for vertical platforms
This commit is contained in:
parent
d3d8b14a3b
commit
2fd0a5c519
3 changed files with 17 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue