LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

How to do better sprite detection/collision

Root / Programming Questions / [.]

XenoslyceCreated:
As we all know, SB's current sprite collision is BAD. It counts transparent cells, and I'm annoyed by this. Is there a way to do sprite collision by NON empty cells?

Idk lol. Define multiple transparent sprites, each one pixel by one pixel (or a series of rectangles, whatever), and overlay them on all the non-transparent pixels of your sprite and check for collision among them all and not check collision for the actual sprite.

Almost every collision system just uses simple hitboxes. Checking every single pixel is complicated and slow. You can change the size of sprite hitboxes to better match the graphics, but there's no simple way to use non-rectangular hitboxes.