diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-12-04 17:32:05 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-12-04 17:32:05 +0200 |
| commit | f97ee1d7c41e07296b6c31b9b85aa299805ba2f1 (patch) | |
| tree | b2276e82bb73544f6dd0d3853f81ed9a6fe6e80e /ps_cinematic.gd | |
| parent | 6686bf1a7a6e81b30c8482cc1d2856f1401f4531 (diff) | |
Add test NPC
Diffstat (limited to 'ps_cinematic.gd')
| -rw-r--r-- | ps_cinematic.gd | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ps_cinematic.gd b/ps_cinematic.gd new file mode 100644 index 0000000..beff319 --- /dev/null +++ b/ps_cinematic.gd @@ -0,0 +1,16 @@ +class_name PlayerStateCinematic +extends PlayerState + +func _to_string() -> String: + return "PlayerStateCinematic" + +func _handle(_delta: float): + 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 |
