You asked how to time events to happen at determined time intervals:
Here is a small example:
sync on:sync rate 0
lasttime=timer():interval=0
do
if timer()-lasttime>=1000
lasttime=timer()
inc interval
endif
cls
text 10,10,"Seconds: "+str$(interval)
sync
loop
This code will count seconds and keep the number of seconds past in the variable "interval". Every time at least one second has passed, it increases the interval variable and resets the lasttime variable to the current time. Should be easy to understand.
Good Luck
Xander Moser of Bolt Software
Firewall: Your Computer's First Defense - Real Time Strategy game
[href]
[/href]