:)
This commit is contained in:
parent
677480ad3d
commit
884f49fed3
4 changed files with 42 additions and 18 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue