Having Attack Hitbox Activate

Hello again!

I figured I could repost an alternate question to the discussion I had earlier. It has been days since anyone has responded. So here it is.

I am having trouble making the hit box activate when the attack button is pressed. I've been doing so much research, but all I can find are general hit boxes locked to a characters position. None of them are about creating a hit box for an attack animation. All the other things I have found are only purchasable tutorials and templates. Would anyone else possibly know how to create an attack hit box work only when the attack button is pressed?

Right now I have my hit box attack actor linked to the front section of my player actor. I also have the enemy have a destroy on collision command when it interacts with the attack actor. This works great, but it's always constant. I'm having trouble turning the interaction on and off with the boolean. I have tried using positions and size of the attack hit box actor with the boolean. So, attack actor's x position/size is true when D (attack button) is pressed and false when it is not. But that does not remove the attack hit box actor at all. What should I make the boolean equal?

Sign In or Register to comment.