Is there a option to see collision polys in web preview

Get help using Construct 2

Post » Sat Mar 01, 2014 10:12 pm

Hello,

Is there a option to see collision polys in web preview like i can see them in editor?
I would like to check do my physic objects behave as i think they are.

Thank you!
B
29
S
11
G
2
Posts: 692
Reputation: 5,159

Post » Sat Mar 01, 2014 10:25 pm

Use the "Debug layout", next to "Run layout" on the top left of Construct 2. Then Search in the list for the object. You should see the collision box.
B
10
S
2
Posts: 135
Reputation: 1,090

Post » Sat Mar 01, 2014 11:01 pm

hm.. i only see bounding box that indicates that particular object but i dont see option to toggle show/hide collision polys... ?
B
29
S
11
G
2
Posts: 692
Reputation: 5,159

Post » Sat Mar 01, 2014 11:10 pm

There is currently no option to do what you asked.
But @Ashley it sounds like a nice request for debbuger.
ImageImageImageImage
B
158
S
66
G
43
Posts: 2,603
Reputation: 35,868

Post » Sat Mar 01, 2014 11:55 pm

Oh sorry. I mixed it up.
B
10
S
2
Posts: 135
Reputation: 1,090

Post » Sun Mar 02, 2014 12:19 am

There is a back-door for this now. If you edit the Sprite plugin, and look for 'Draw collision poly (for debug)', you'll see the code is commented out. Remove the comments, and turn off WebGL in your project. The collision poly is now drawn.

Be sure to revert back before publishing.
ImageImageImage
B
71
S
22
G
248
Posts: 3,761
Reputation: 138,073

Post » Sun Mar 30, 2014 12:57 pm

@ashley +1
B
15
S
6
G
4
Posts: 277
Reputation: 3,948


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests