summaryrefslogtreecommitdiffstats
path: root/ps_cinematic.gd
blob: beff319d9ca4a1f57d26e21484b02f2145f0d093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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