Collision between specific objects

For questions about using Classic.

Post » Thu Mar 24, 2011 9:23 am

Hi there,

Is there a way to turn collision off for an object, but only when it collides with another specific object, rather than turning collision off completely? Similar to the way you can with the physics behaviour, except without the physics.

I basically have a flying character that picks up a box, I need the box to not collide with the character as it's being carried. But I'd like the box to be able to collide with other objects while he carries it.

If that makes sense :P

Thanks
B
9
S
4
G
5
Posts: 136
Reputation: 2,952

Post » Thu Mar 24, 2011 12:57 pm

So you want to turn off the "solid" attribute? You could just use your own custom method of collisions with events, so it only colides with objects you want?
B
4
S
1
G
1
Posts: 63
Reputation: 776

Post » Thu Mar 24, 2011 5:56 pm

Yeah, I would do that. Except I've already got some fairly complex events going on, so I'd like to avoid it if possible, cause I'm pretty sure I'll mess something up :)
B
9
S
4
G
5
Posts: 136
Reputation: 2,952

Post » Thu Mar 24, 2011 6:13 pm

Actually, I've kinda sorted it. I just used a collision at offset from the player to stop the box from colliding with other solids. Bit of a work-around, but it works for what I need so far.
B
9
S
4
G
5
Posts: 136
Reputation: 2,952


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests