
-----------------------------------
born130
Mon Jun 09, 2003 8:08 pm

Clock
-----------------------------------
Is there any way to have the clock function not start at the beginning of a program but at any point.

i.e. since i am makin a track game i want the clock to start when the user selects that game from the menu. right now the problem is the clock starts with that program.

thanks

-----------------------------------
nate
Mon Jun 09, 2003 8:11 pm

make it a process
-----------------------------------
If you make if a process then it will start when ever you call it

var time :int
process timer
loop
clock (time)
end loop
end timer

put "Put i will wait 1 sec b4 starting the clock"
delay (1000)
fork timer


hope this is what u want!

-----------------------------------
AsianSensation
Mon Jun 09, 2003 9:43 pm


-----------------------------------
var t1, t2:int

whenever you want to start the timing

t1:=Time.Elapsed

blah, blah, blah(the code, for the jumping)

when you are finished, or the code triggers it,
t2:=Time.Elapsed

the total time passed is: t2 minus t1

-----------------------------------
AsianSensation
Mon Jun 09, 2003 9:45 pm


-----------------------------------
oh, btw, do your best to avoid processes, they are slow, not timed well enough, and take up alot of memory, use it only when you are playing background music.

-----------------------------------
Catalyst
Mon Jun 09, 2003 9:46 pm


-----------------------------------
cant stress that point enough

-----------------------------------
born130
Thu Jun 12, 2003 2:26 pm


-----------------------------------
code please
