How do I touch an object?

From the Asset Store
112 High-Quality destruction sounds for videogames
  • I hav no idea why this is not working.

    I have a touch plugin. And a pause button.

    Basically when you touch the pause button it should pause the timer and change it's animation. When you press it agaain the timer should resume and go back to its normal animation. IDK why but when i press the pause button it's like i didnt ress it. But when I press on some specific location it works.

    My code is the following

    + Touch: On tap gesture on PausePlay
    + PausePlay: Is animation "Pause" playing
    -> TimeSprite: Set Timer timer "Q" Paused
    -> PausePlay: Set animation to "Play" (play from beginning)
    

    and

    + Touch: On tap gesture on PausePlay
    + PausePlay: Is animation "Play" playing
    -> TimeSprite: Set Timer timer "Q" Resumed
    -> PausePlay: Set animation to "Pause" (play from beginning)
    

    Please help!

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Don't break up the logic. Check for On tap first, and then use sub events to check "Pause" Else "Play".

  • yeah, the first set of code sets the animation to "Play"

    then the second set of code will also see the tap gesture and now that the animation is "Play" it will set it right back to "Pause" all on the same tick.

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