Posted: 30th Oct 2011 19:36
(excuse me if this has been asked)

Hey guys!

I havn't yet figured out how to count in miliseconds.
What I want to do is once seconds/miliseconds are more than X then reset seconds/miliseconds. See what I mean?

I've seen the help manual but my brain couldn't absorb the info and make it work.

I am just this one step away from having completed my first ever project! /Smugface
Posted: 30th Oct 2011 22:34
To count in miliseconds, use the timer() function like this:

+ Code Snippet
t#=timer()

do
 ct#=timer()
 // Check if 100 miliseconds has passed
 if ct#>t#+0.1
  t#=ct#
  //do stuff
 endif
 sync()
loop
Posted: 30th Oct 2011 23:02
eugh...I had thought from the help text that it only does whole seconds. I'll get trying!