diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-12-03 15:33:47 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-12-03 15:33:47 +0200 |
| commit | 992e27742fc996bd428b04201f7548533761cfab (patch) | |
| tree | e4afff26ac38a12967cf588f0a68ac608a8e1782 /ps_init.gd | |
| parent | ac4b7f690ab70185349905baf8c8557dfc8e57ae (diff) | |
Open door with a cinematic
Diffstat (limited to 'ps_init.gd')
| -rw-r--r-- | ps_init.gd | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -5,7 +5,12 @@ func _to_string() -> String: return "PlayerStateInit" func _handle(_delta: float): - pass + if p.velocity.x > 0: + p.anim_sp.flip_h = false + elif p.velocity.x < 0: + p.anim_sp.flip_h = true + + p.anim_sp.set_animation("idle") func _handle_physics(_delta: float): pass |
