Compare commits
1 Commits
c9e9e5319a
...
9160c3cf57
Author | SHA1 | Date |
---|---|---|
|
9160c3cf57 |
|
@ -197,7 +197,7 @@ Let's illustrate this with a practical code example:
|
||||||
func _idle_update(delta: float) -> void:
|
func _idle_update(delta: float) -> void:
|
||||||
var dir: Vector2 = Input.get_vector(
|
var dir: Vector2 = Input.get_vector(
|
||||||
&"ui_left", &"ui_right", &"ui_up", &"ui_down")
|
&"ui_left", &"ui_right", &"ui_up", &"ui_down")
|
||||||
if not dir.is_zero_approx():
|
if dir.is_zero_approx():
|
||||||
hsm.dispatch(&"movement_started")
|
hsm.dispatch(&"movement_started")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue