Hello everyone, I am making a fighting game and I am starting to mess around with hitboxes. I understand how to animate hitboxes alongside my sprite, but I want to be able to add or remove colliders with the animation. For example, for an attack I would like to spawn in a new hitbox collider and make it disappear after the move finishes executing. How can I do this?
I think you can enable/disable colliders easily enough via animation. Not sure you could add/remove in animation unless you made some kind of artificial boolean proxy object that you checked and did the spawn/remove yourself.
Or just enable/disable entire copied subtrees of your animated attack. Not sure what the usual process is, but that’s where I would start looking.
1 Like