How do I set a condition and action like ....

Get help using Construct 2

Post » Sun Aug 31, 2014 4:31 pm

Are there any way that i can set a condition and action like: whenever the ball (my chracter) fall in (collision with) the left side of boom it will jump to left, collision with the right it will jump to the right and collision with the middle of boom it will jump vertical. OR i should divide the boon into 3 part and add condition for each of them.
Image
B
2
Posts: 1
Reputation: 152

Post » Sun Aug 31, 2014 5:01 pm

BraveCyber wrote:Are there any way that i can set a condition and action like: whenever the ball (my chracter) fall in (collision with) the left side of boom it will jump to left, collision with the right it will jump to the right and collision with the middle of boom it will jump vertical. OR i should divide the boon into 3 part and add condition for each of them.
Image

You can do it by checking the x of ball on collision, if ball.x is less than boon.x-50(let's say 50, i don't know the size of your sprite so it's gonna be 50, you'll set it yourself) and ball is overlapping boon then move ball to left and up. And so on.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, guannstar, marcinkowski, Shenkai the ssj, Yahoo [Bot] and 13 guests