Customizable Bounding Boxes?

New releases and general discussions.

Post » Wed May 21, 2008 11:32 pm

I was wondering if this is already implemented in Construct, or if it could be a possible future feature.

By customizable, I just mean being able to change the shape and size to suit whatever needs you have for your particular game. It would be very helpful for top-down games but I imagine just about any project could benefit from it.

Maybe... when you open up an image in the editor there could be an option to draw a bounding box around the sprite?

If there are better or just-as-good solutions then feel free to smack me for making pointless requests... :mrgreen:
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Wed May 21, 2008 11:58 pm

I think customising collision masks is on the to-do list, but I don't think it'll be done for pre-1.0. On the other hand, a very simple and effective workaround is to simply use an invisible sprite with your custom collision mask drawn, always set it to the parent object's position, and test collisions with that instead. If you put the two objects in a container, the object picking in events even works exactly as before.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Thu May 22, 2008 12:00 am

Thank you, Ashley. That sounds like a much better solution than what I've been trying to do.
B
4
S
2
G
4
Posts: 401
Reputation: 2,302


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 5 guests