TheSeekerGame / TheSeeker

Metroidvania game in Bevy
24 stars 6 forks source link

Adds a freeze affect when the player lands a hit #40

Closed destravous closed 1 month ago

destravous commented 1 month ago

Sets the player velocity to zero if the land a hit in midair with an attack, for hitfreeze_ticks as specified in the player config. Currently doesn't distinguish between ranged and melee attacks. (as Attack itself doesn't track that)

New attacks will reset the air_tick timer if they land, so if hitfreeze_ticks is longer then the attack animation the player could stay in midair as long as the attacks keep landing.