state after magic clip done

This commit is contained in:
2025-05-21 02:10:50 +02:00
parent 708aa8cca4
commit 47a1326292
5 changed files with 338 additions and 43 deletions
+30
View File
@@ -0,0 +1,30 @@
using Babushka.scripts.CSharp.Common.CharacterControls;
using Godot;
namespace Babushka.scripts;
public partial class spiritAnimation : AnimationPlayer
{
[Export] private Player2D _player;
[Export] private Node2D _offerings;
public override void _UnhandledInput(InputEvent @event)
{
if (@event is InputEventKey eventKey)
{
if (eventKey.Pressed && eventKey.Keycode == Key.Alt)
{
_player.PlayPickUpAnimation();
_offerings.Visible = true;
}
if (eventKey.Pressed && eventKey.Keycode == Key.Space)
{
Active = true;
Play("hand_stretch");
}
}
}
}
+1
View File
@@ -0,0 +1 @@
uid://cqkqijsjvbasl