first commit
This commit is contained in:
commit
096ebe5aa4
275 changed files with 3937 additions and 0 deletions
16
testwalk.gd
Normal file
16
testwalk.gd
Normal file
|
@ -0,0 +1,16 @@
|
|||
extends AnimatedSprite
|
||||
|
||||
|
||||
func _physics_process(delta):
|
||||
var dir = Input.get_axis("ui_left","ui_right")
|
||||
position.x += dir
|
||||
#Flip Sprite
|
||||
if dir < 0.0:
|
||||
flip_h = true
|
||||
elif dir > 0.0:
|
||||
flip_h = false
|
||||
|
||||
if dir == 0:
|
||||
play("idle")
|
||||
else:
|
||||
play("move")
|
Loading…
Add table
Add a link
Reference in a new issue