Help with collision and solids.

Get help using Construct 2

Post » Tue Jul 01, 2014 8:19 pm

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?
B
4
Posts: 10
Reputation: 220

Post » Tue Jul 01, 2014 9:05 pm

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
Please tag me with @caiorosisca if your post is refering to me :). I don't always follow the topics I answer.
B
11
S
4
G
1
Posts: 272
Reputation: 1,643

Post » Tue Jul 01, 2014 9:17 pm

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.
B
4
Posts: 10
Reputation: 220

Post » Tue Jul 01, 2014 9:30 pm

"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.
Image
B
36
S
14
G
11
Posts: 142
Reputation: 8,465


Return to How do I....?

Who is online

Users browsing this forum: jasontoups, raptor0555 and 1 guest