Page 1 of 1

Help with collision and solids.

PostPosted: Tue Jul 01, 2014 8:19 pm
by rikk
Hello,

This is my first time writing in this forum and I need your help!
I have encountered a problem that has stopped all my progress with C2.

I have 3 SOLID sprites: A, B and C.
When I click on a keyboard:

I want A colliding with B and C.
B to colliding with A but not C.
And C to colliding with A but not B.

Is the above scenario possible with the free edition? If yes, how?

Re: Help with collision and solids.

PostPosted: Tue Jul 01, 2014 9:05 pm
by caiorosisca
It is with physics objects, Imagine you have objects A, B and C. All of them need the physics behaviour.

On key press:
- A > Enable Physics collisions with B
- A > Enable Physics collisions with C
- B > DisablePhysics collisions with C

thats all you need

Re: Help with collision and solids.

PostPosted: Tue Jul 01, 2014 9:17 pm
by rikk
Thanks.
But what if I do not want to use physics?
For example I am working a top-down game with up to 50 constantly moving solids in an environment with many obstacles.
What I am looking to achieve is the following:
I have a Player, an Obstacle and a Box.
All solids.
When I press a key, I want to the Player to pass through (or jump) the obstacle But not the Box.

Re: Help with collision and solids.

PostPosted: Tue Jul 01, 2014 9:30 pm
by Gillis
"Solid - Ignore Select Solid" has been a feature I have dreamed about but it currently not implemented... There are ways to do this if you don't use the Solid behavior and check X,Y Coords against said object but it's a lot of hard coding. Sorry I dont have a demo capx but there are some floating around on here.