Make ball speed velocity increase if lower than 50

0 favourites
  • 3 posts
From the Asset Store
You think you can guess the character’s name?! Then let’s see how smart you are!
  • I'm doing a pong game and the speed of ball sometimes when hit is too slow, I would like to increment the speed by 10% if the ball speed goes below 50. I don't see no compare speed or compare physics variables.

    So I'm a bit stuck.

    Thank you.

  • Use "compare two values" from the system condition. Since you probably have only one ball, you don't have to worry about picking the right instance, so simply compare ball.physics.yourVariable and 50.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use "compare two values" from the system condition. Since you probably have only one ball, you don't have to worry about picking the right instance, so simply compare ball.physics.yourVariable and 50.

    Thanks Magistross.

    I used System -> ball.Physics.VelocityX = 0.05 -> Ball -> Apply Physics impulse 0.08 toward (0,0) at image point 0.

    It seems to use decimals instead of big numbers.

    It seems to do the job, in an awkward way ^^

    Please let me know if it needs tweaking.

    Web Demo

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