The Daily Click ::. Forums ::. Klik Coding Help ::. Timer
 

Post Reply  Post Oekaki 
 

Posted By Message

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  531

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
19th March, 2008 at 12:05:07 -

When a certain event occurs, I'd like a timer to start. Then when the timer is equivalent to such and such a number, it resets and stops. How could I erm... Do this?

 
Image

Tell 'em Babs is 'ere...

-Nick-

Possibly Insane

Registered
  24/11/2002
Points
  2468

VIP Member
19th March, 2008 at 12:15:50 -

I'm struggling to understand if this is a serious question.

When the event occurs, set the counter to 1.

When the counter is greater than 0, add 1 to the counter.

When the counter is equal to the amount you want, set it back to 0 and perform whatever other action you like.


Is that what you mean?

 
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  531

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
19th March, 2008 at 12:18:58 -

Hehe, I guess I'm just not thinking today

Thanks

 
Image

Tell 'em Babs is 'ere...

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
19th March, 2008 at 13:47:46 -

hmm. do you want it to be time consistent? or are you just looking for a counter?

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  531

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
19th March, 2008 at 15:35:00 -

Oringinally I wanted it to be time consistant yes, but after a thinking it doesn't have to be at all

 
Image

Tell 'em Babs is 'ere...
   

Post Reply



 



Advertisement

Worth A Click