feat: dragon animated sprite flipping
This commit is contained in:
parent
8e93ec5db9
commit
dab0545d26
3 changed files with 7 additions and 3 deletions
|
@ -15,7 +15,9 @@ func dress(hat: Texture2D, shirt: Texture2D, shoes: Texture2D):
|
|||
|
||||
func walk_left():
|
||||
$Sprite.scale.x = 1
|
||||
$DragonBody.scale.x = 1
|
||||
|
||||
|
||||
func walk_right():
|
||||
$Sprite.scale.x = -1
|
||||
$DragonBody.scale.x = -1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue