TheSeekerGame / TheSeeker

Metroidvania game in Bevy
24 stars 6 forks source link

Dash #54

Closed c12hz closed 1 month ago

c12hz commented 1 month ago

A quick burst of velocity that lasts for a very short duration, then the ability goes on a short cooldown. Dash duration, Dash velocity, and cooldown duration adjustable from config. The 'animation' for dash is already in the repo (it's just a single frame). I thiiink I already set the animation up in game. It shouldn't have any acceleration/deceleration. Your vertical velocity gets set to 0 for the entire duration of dash. The previous vertical or horizontal velocity you had before dash doesn't get remembered, so when the dash ends your velocity gets set to zero both vertically and horizontally and the various states can start doing their thing and accelerating. The dash can go through enemy colliders, but collides with walls. The dash should ignore and cancel the hit freeze effect. The dash also cancels any player animations that were playing including attacks.