Physics collision on pixel level.

For questions about using Classic.

Post » Thu Oct 09, 2014 12:11 am

New problem for me that's probably been tackled before but I couldn't find it.

Image
How do I stop these 1x1 physics objects from overlapping with the immovable solid (red object)?
B
5
S
1
Posts: 20
Reputation: 446

Post » Thu Oct 09, 2014 11:43 am

Hmm, that's a tricky one. I'm not sure how a 1x1 pixel collision box would center. Would it be possible to increase all objects by 4x so that the collision boxes can be a little bigger? (or maybe, create a slightly bigger collision box outside of the graphic area by 1px all around the center).
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
116
S
41
G
17
Posts: 2,204
Reputation: 19,545

Post » Thu Oct 09, 2014 8:07 pm

I'm a dumdum. All I had to do was set that ground objects height to a multiple of 2 (2, 4, 8, 16 and so on) and it worked.
B
5
S
1
Posts: 20
Reputation: 446

Post » Fri Oct 10, 2014 3:49 am

Glad to hear! :)
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
116
S
41
G
17
Posts: 2,204
Reputation: 19,545


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 16 guests