Jump to content

Running timer


Vooruit!

Recommended Posts

How is one supposed to know whether a specific timer is running? In the emulator, there's a timer.Running property available, which works fine. WhereYouGo doesn't support this however.

Right now, I'm using a variable that is set to true when the timer is started, but it seems such a stupid solution.

Link to comment

In the early days, I tried to find a property that indicated how many seconds remained on a timer, but none existed.  I think timer.Running was one of those things that wasn't apparent to anyone working on a player or builder, either.

I agree the best way is to use a variable of your own creation.  Don't tie it to the variables that are persisted across cartridge restores, however, or you might end up with the wrong value.  As you likely know, all previously-running timers expire upon cartridge restore.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...