reverse boundingbox

Discussion and feedback on Construct 2

Post » Wed Nov 20, 2013 3:50 pm

scirra could you make a reversed bounding box so if we made an object you could make an object inside it not able to go out side of it
that would be really awesome if you could
B
40
S
11
G
7
Posts: 514
Reputation: 9,636

Post » Wed Nov 20, 2013 4:47 pm

It's possible to construct one using a lot of points in a collision polygon, which is highly inefficient considering the high point usage, and would probably be a good idea to just use a few different sprites to create an enclosed area. I personally don't know if I'd ever use this feature if it was added, but I definitely would find multiple collision boxes with tags to be useful! (which also has it's own workaround already, by pinning other sprites onto one object)

Here's a capx of the (not best) workaround to make a hole in the collision mask (when making one yourself, make sure to put the overlapping collision points exactly over eachother, under/overlapping the area in a collision polygon will cause it to not be detected.)
https://dl.dropboxusercontent.com/u/7765312/C2/HoleInACollisionBox.capx

Hope this was helpful!
B
51
S
20
G
10
Posts: 571
Reputation: 9,819


Return to Construct 2 General

Who is online

Users browsing this forum: Cliffu and 13 guests