How do I increase spped ball for each touch

0 favourites
  • 3 posts
From the Asset Store
Minimalist Crash Balls is a game where the goal is to hit the ball on the portal, with 20 different levels :)
  • I need to increase the speed of a ball whenever I click/touch on a sprite in rapid succession :

    1 click/touch- speed X1

    2 click/touch-- speed X2

    3 click/touch - speed X3

    and so on

    every time I click/touch in rapid succession the ball must accelerate an X value

    PLEASE HELP XD

  • Setup event:

    >On click/touch

    • • • • >Set SomeTimingVariable to 1

    • • • • >Wait 0.25 seconds (or however long you want the "rapid succession" window to be)

    • • • • >Set SomeTimingVariable to 0

    Base event:

    >On click/touch

    • • • • >If SomeTimingVariable is 0

    • • • • • • • • >[Do whatever initial thing you want to happen]

    • • • • >Else

    • • • • • • • • >Set Ball.Speed to Ball.Speed+100 (or whatever speed amount you'd wish to add)

    Good luck, hope this helps!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • please can u made same screen shot for me ?? i try to do that but is not working...XD

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