15 lines
410 B
GDScript
15 lines
410 B
GDScript
extends Control
|
|
|
|
@onready var animated_sprite_2d: AnimatedSprite2D = $StopPhase/AnimatedSprite2D
|
|
@onready var animation_player: AnimationPlayer = $AnimationPlayer
|
|
|
|
func _input(event: InputEvent) -> void:
|
|
if event.is_action_pressed("grab_item"):
|
|
animation_player.play("stop-phase")
|
|
|
|
func stop_phase_anim_play():
|
|
animated_sprite_2d.play("stop-phase")
|
|
|
|
func stop_phase_anim_stop():
|
|
animated_sprite_2d.stop()
|