I’ve bought ex2d for a current project and was wondering how i’d use hitboxes with the animations for a future beat em up project i have in mind. Can it be done or do i need another package for this kind of thing? Anyone else doing something similar with 2d hitboxes?
I’m not sure it would fit for Unity-animated sprites, but well, this might at least offer some alternative :
Thanks but like you said, i don’t think it’ll work with a 2d animated sprite.
Actually I posted these for the part where an Editor script extracts Unity anims to fixed data structures, so you can create hitBoxes from animCurves at any time ![]()
It can work pretty well even with 2D hitboxes (which are just “slim” 3D bounds).
Ah cool. I was looking at the boxes on the FBX part. lol Thanks
To use builtin box colliders as hitboxes, you can also check out the WIP programming thread. Im one ofy testbeds, I making heavy use of hitboxes, but I’m also animating them in conjunction with my sprites.
What thread? Can you post a link please?
Pretty much, it’s operating on a set of strings associated to n GameObjects (presumably, ones with a Box Collider and associated scripts). When told that the entity is in a given state (e.g Walk-Left), this system will apply that state’s transformations to each ‘hitbox’. When I have my Zelda 2 swordfighter in better shape, you’ll be able to see first hand what I mean, but for now that should help with some of your issues.