
-----------------------------------
Clayton
Tue Aug 08, 2006 2:31 pm

Timer Issues
-----------------------------------
ok, im working on a game right now and im having some problems coming up with a reliable way to keep track of n timers without screwing up the screen, and noticeably slowing down the game, at first i thought of a procedure, but couldnt get it to work quite right, so i went to a process, but its still not working, heres what i have so far, if anybody could help it would be much appreciated :D


process timer (amount : int)
    const times : int := amount * 1000
    var tim : int := Time.Elapsed
    var tim2 : int := Time.Elapsed - times
    loop
        cls
        put "Time Before Impact: ", round ((tim - tim2) / 1000)
        View.Update
        tim2 := Time.Elapsed - times
        if tim - tim2 