goodnight_jellybean/godot/animated_creature.gd

14 lines
239 B
GDScript3
Raw Permalink Normal View History

2023-06-05 08:00:14 -06:00
extends Node3D
2023-01-01 14:02:34 -07:00
2023-06-05 08:00:14 -06:00
@export var hop = false
2023-01-01 14:02:34 -07:00
func _ready():
if hop:
$creature/AnimationPlayer.play("idle_hop")
else:
$creature/AnimationPlayer.play("idle_turn")
func _on_GoalInteractArea_interact():
pass # Replace with function body.