feat: Add new animation scene and script to manage ready-go, safe-zone, and stop-phase visual effects.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user