Collision detection with solids.

For questions about using Classic.

Post » Tue Feb 15, 2011 6:02 am

I have a small question about some trigger options.
To example - i have



My question is, how can i ask about solid object's top/bottom/left/right edge, with witch i had collision?
B
1
G
2
Posts: 9
Reputation: 643

Post » Tue Feb 15, 2011 6:23 am

Pretty sure you cant use "solid like that, and since you cant get x,y coordinates from it anyways, I'd suggest placing all the "solid" objects into a family, and using overlapping at offset.
+n y will get the bottom, -n y will get the top etc.

Its that or making up some collision dummies you place at image points.
Image Image
B
161
S
48
G
91
Posts: 7,359
Reputation: 67,273

Post » Tue Feb 15, 2011 7:00 am

That's odd, cause we can have one big event "collision with solid", but we can't ask which solid it was (except for manually putting all solids and shit in separate groups or even making stand-alone events for each solid). Guys, do something about it. :|
B
1
G
2
Posts: 9
Reputation: 643

Post » Tue Feb 15, 2011 8:10 am

Yeah, well, um I think that old saying "a rock and a hard place" works the best here.
Image Image
B
161
S
48
G
91
Posts: 7,359
Reputation: 67,273

Post » Tue Feb 15, 2011 3:20 pm

You can put all solid objects into a family 'solids' and check for collisions with that instead.
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests