made move direction export actually work
This commit is contained in:
parent
0454ec21b8
commit
a5302367de
3 changed files with 30 additions and 6 deletions
|
@ -7,7 +7,7 @@ export var down_boundary = 0.0
|
|||
var direction = Vector2(1,1)
|
||||
export var speed = 50
|
||||
#Move horizontal or vertical
|
||||
export(int, "Left To Right", "Right To Left") var move_direction
|
||||
export(int, "/", "\\") var move_direction
|
||||
#Onreadys
|
||||
onready var startpos = position
|
||||
|
||||
|
@ -17,7 +17,7 @@ func _ready():
|
|||
down_boundary *= 8
|
||||
#Move in direction selected
|
||||
if move_direction == 0:
|
||||
direction = Vector2(-1,-1)
|
||||
direction = Vector2(1,-1)
|
||||
|
||||
func _physics_process(delta):
|
||||
#Move
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue