implemented a little dash animation
This commit is contained in:
parent
77a7075703
commit
26dc7d4f57
4 changed files with 38 additions and 8 deletions
|
|
@ -65,6 +65,7 @@ public sealed partial class Player : CharacterBody2D, IAttackable, IHitboxOwner,
|
|||
private AnimationNodeStateMachinePlayback _playback = null!;
|
||||
public List<BufferedInput> InputBuffer { get; } = [];
|
||||
public bool IsInWater { get; private set; }
|
||||
public bool IsDashing => !DashTimer.IsStopped();
|
||||
public Vector2 DashDirection { get; set; }
|
||||
public float DashPoints { get; set; }
|
||||
public float BankedDashPoints { get; set; }
|
||||
|
|
@ -436,6 +437,7 @@ public sealed partial class Player : CharacterBody2D, IAttackable, IHitboxOwner,
|
|||
: _currentDirection
|
||||
).Normalized();
|
||||
DashHitbox.StartAttack();
|
||||
_playback.Travel("side_dash");
|
||||
}
|
||||
|
||||
private void Parry() => ParryTimer.Start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue