This commit is contained in:
pennyrigate 2025-03-09 12:41:26 -04:00
parent 677480ad3d
commit 884f49fed3
4 changed files with 42 additions and 18 deletions

View file

@ -15,9 +15,11 @@ var _player: Player = null
func _physics_process(delta: float) -> void:
if is_zero_approx(speed):
%Head.play("normal")
collision_shape.disabled = false
rotation_pivot.rotation = 0.0
else:
%Head.play("happy")
collision_shape.disabled = true
rotation_pivot.rotation += rotation_speed * delta
if _player: