How do I a ball collides with "anything"

Get help using Construct 2

Post » Mon Dec 01, 2014 6:57 pm

Hello, this is my problem. I hope someone can help me :). I add an image for better explaining.
Image
In my game there are too many blocks (platforms) with the collisions enabled (is the floor). I want that my player throw a ball (it is done. If you know another better way for doing, please tell me :S). The ball has the physics behavior:
Image
Now, what I want is that when the ball collides with any platform (1, 2 or 3 in the image) the ball turns inmovable and not fall. There are too much platforms and I don´t wanto to use: When the ball is on collision with 1, set inmovable / When the ball is on collision with 2, set inmovable,... I want something like: When the ball is on collision with "something" set imovable.
It is that possible? haha
thanks so much! :lol:
B
7
S
1
Posts: 28
Reputation: 652

Post » Mon Dec 01, 2014 7:07 pm

Put all the platforms in a family, then create the condition: when ball collides with (platform family) set ball to inmovable.
B
28
S
10
G
10
Posts: 97
Reputation: 6,584

Post » Mon Dec 01, 2014 7:34 pm

Thank you so much @makotto, I think I am stupid :S! LOL
B
7
S
1
Posts: 28
Reputation: 652

Post » Tue Dec 02, 2014 11:09 pm

Are you using sprites, 9 patches, or tiled backgroundo for the platforms? (Just curious).
B
28
S
10
G
10
Posts: 97
Reputation: 6,584

Post » Wed Dec 03, 2014 8:56 am

I´m using sprites for the platforms. Is there something better? @makotto
B
7
S
1
Posts: 28
Reputation: 652

Post » Wed Dec 03, 2014 1:20 pm

I worked on a prototype and used a mix of sprites and tiled background. I was just curious.
B
28
S
10
G
10
Posts: 97
Reputation: 6,584


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests