stopwatch

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

stopwatch

Postby sunnyshi2005 » Wed Aug 16, 2017 6:47 am

How can I make a stopwatch (say thing 1) that displays Sim.time all the time but stops when something hits another thing (say thing 2)?
sunnyshi2005
 
Posts: 7
Joined: Wed Jun 14, 2017 3:33 am

Re: stopwatch

Postby Luezma » Wed Aug 30, 2017 7:51 am

Don't use sim.time, use 1/sim.frequency instead
Code: Select all
_time = 0;
something ? {_time = _time + 1 / sim.frequency}:{}
Luezma
 
Posts: 14
Joined: Thu Dec 13, 2012 7:19 pm
Location: Argentina


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron