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

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

    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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)