![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on cant this timer to work within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; i cant post my code cause im on my wipeout browser but i need little help gettin the timer to ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() ...in a dream...
|
i cant post my code cause im on my wipeout browser but i need little help gettin the timer to show its there but wont show in lua so can some1 post there working timer? or atleast tell me how to get mine to show
|
|
|
|
|
|
#4 |
![]() ![]() total-Z
|
The codes for timers in lua are:
well, an example, I guess... timer1 = Timer.new(0) --this means make the object 'timer1' a timer and start at 0 milliseconds timer1:start() --start counting timer1:time() -- the time of the timer in milliseconds timer1:stop() --stops the timer timer1:reset(0) --reset the timer, and start at 0 milliseconds I think thats about it. Hope this helps! |
|
|
|
|
|
#7 |
![]() ![]() total-Z
|
to display the time from the timer, you would use something like:
screen:print(0,0,timer1:t ime()) or, an if statement: if timer1:time() == 60 then timer1:reset(0) end I dunno if that will help, but if you could be a little more specific on what you are trying to do, that would be great. |
|
|
|
![]() |
| Tags |
| timer , work |
| Thread Tools | |
|
|