How do I Stop a Timer

0 favourites
  • 4 posts
From the Asset Store
Tabata timer
$9.99 USD
Template for Tabata timer, fully documented in comments and video
  • Hi everyone.

    I have a global variable Timer=35.

    on start of layout timer goes from 35 to 0 .

    I have 2 object (Object A & object B)

    What am having problem to do is stopping the timer on its current second

    when object A overlaps Object B.

    Anyone can help me plz

  • This is a simple version where a variable is set if the object is overlapping.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey bro many thanks to you.It was really helpful.I made a small test with your codes and it works

    Btw it there a way so that after Object A overlaps with object B the timer stays on its current time.

    In my case the problem am having now is that when the objects overlaps the timer is freeze,thats good,but then they finished overlapping the timer resumes ticking.I want the timer to freeze even after they finish overlapping.

    How can i do that?

  • Remove the "Sprite is not overlapping Sprite2" event.

    This way, on the first time both objects overlap, you end up with gRunning set to 0, rendering the first event untrue and preventing from executing it.

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