Fix up animations for more enemies

This commit is contained in:
2025-04-03 00:48:28 -07:00
parent 63391ef82a
commit d5108fbc1e
8 changed files with 2251 additions and 1565 deletions

View File

@@ -51,7 +51,7 @@ public partial class DataViewer : Control
Camera3D.Position = Camera3D.Position.Clamp(new Vector3(0, 0, 1), new Vector3(0, 0, 4));
ModelPivot.Rotation = ModelPivot.Rotation.Clamp(Mathf.DegToRad(-60), Mathf.DegToRad(60));
_currentModel.SetCurrentDirection(_currentModel.GlobalBasis, CameraPivot.Basis.Z);
_currentModel.SetCurrentDirection(_currentModel.GlobalBasis, -CameraPivot.Basis.Z);
_currentModel.PlayIdleAnimation();
if (Input.IsActionJustPressed(GameInputs.Attack))
@@ -60,6 +60,8 @@ public partial class DataViewer : Control
_currentModel.PlaySecondaryAttackAnimation();
if (Input.IsActionJustPressed(GameInputs.Inventory) && _currentModel is ICanActivate canActivate)
canActivate.Activate();
if (Input.IsActionPressed(GameInputs.StrafeRight))
_currentModel.PlayWalkAnimation();
if (Input.IsActionJustPressed(GameInputs.Next))
{