goodnight_jellybean/godot/animated_creature.gd

14 lines
239 B
GDScript

extends Spatial
export var hop = false
func _ready():
if hop:
$creature/AnimationPlayer.play("idle_hop")
else:
$creature/AnimationPlayer.play("idle_turn")
func _on_GoalInteractArea_interact():
pass # Replace with function body.