swicth animation to change scene

This commit is contained in:
Jonas Mucke
2020-04-19 21:51:38 +02:00
parent ceba6f648c
commit 7b1d57dfb5
2 changed files with 2 additions and 2 deletions

View File

@@ -203,4 +203,4 @@ func movement_run(direction, delta):
func movement_idle():
movementState = moveState.IDLE
velocity = Vector2.ZERO
animation_state.travel("idle")
animation_state.change_scene("idle")

View File

@@ -637,7 +637,7 @@ scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 2 )
offset = Vector2( 0, -18 )
hframes = 60
frame = 7
frame = 9
[node name="Body" type="CollisionShape2D" parent="."]
position = Vector2( 0.0107212, 0.0456073 )