feat: changed timing for hurtboxes from player

This commit is contained in:
Sara 2023-12-01 21:45:10 +01:00
parent cca9b97378
commit f201fe50f5

View file

@ -70,7 +70,7 @@ void PlayerJabA_Enter(Player* self) {
const State* PlayerJabA_Update(Player* self, float deltaTime) {
const float ntime = animation_sprite_get_time_normalized(self->currentAnimation);
if(self->animationTriggers == 0 && ntime > 0.5f)
if(self->animationTriggers == 0 && ntime > 0.33f)
PlayerAttackTrigger(self);
if(self->attackInput && ntime > 1.0f)
return PlayerJabB();
@ -89,7 +89,7 @@ void PlayerJabB_Enter(Player* self) {
const State* PlayerJabB_Update(Player* self, float deltaTime) {
const float ntime = animation_sprite_get_time_normalized(self->currentAnimation);
if(self->animationTriggers == 0 && ntime > 0.5f)
if(self->animationTriggers == 0 && ntime > 0.33f)
PlayerAttackTrigger(self);
if(self->attackInput && ntime > 1.0f)
return PlayerJabA();