I need a timer.

About advanced scenes, and the Thyme scripting language used in Algodoo.

I need a timer.

Postby pnvv » Sat Oct 04, 2014 4:22 pm

Like something that starts when a certain key is pressed and stops when something hits it?
Image

(/)(°,,,°)(/)
User avatar
pnvv
 
Posts: 670
Joined: Tue Aug 26, 2014 11:46 pm
Location: Disunited States of America

Re: I need a timer.

Postby Kilinich » Sat Oct 04, 2014 7:58 pm

Why you need it? From your description - you don't understand what timer is.
If you need to do some script after x seconds, just create geom with timeToLive =x and onDie=(x)=>{do some}
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: I need a timer.

Postby pnvv » Sat Oct 04, 2014 11:05 pm

Kilinich wrote:Why you need it? From your description - you don't understand what timer is.
If you need to do some script after x seconds, just create geom with timeToLive =x and onDie=(x)=>{do some}

No, I need something that measures the time between two events. Like the timer in your drag race scene.
Image

(/)(°,,,°)(/)
User avatar
pnvv
 
Posts: 670
Joined: Tue Aug 26, 2014 11:46 pm
Location: Disunited States of America

Re: I need a timer.

Postby Kilinich » Sun Oct 05, 2014 9:23 pm

pnvv wrote:
Kilinich wrote:Why you need it? From your description - you don't understand what timer is.
If you need to do some script after x seconds, just create geom with timeToLive =x and onDie=(x)=>{do some}

No, I need something that measures the time between two events. Like the timer in your drag race scene.

It's not a timer, its stopwatch. So why don't you look into my scene's code?
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: I need a timer.

Postby pnvv » Sun Oct 05, 2014 9:29 pm

Kilinich wrote:It's not a timer, its stopwatch. So why don't you look into my scene's code?

*facepalm*

Will do that...
Image

(/)(°,,,°)(/)
User avatar
pnvv
 
Posts: 670
Joined: Tue Aug 26, 2014 11:46 pm
Location: Disunited States of America


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 5 guests