![]() |
|
#1
|
|||
|
|||
|
Code:
white = Color.new(255,255,255)
yellow = Color.new(255,255,0)
green = Color.new(0,255,0)
counter = Timer.new()
counter:start()
while true do
screen:clear()
pad = Controls.read()
currentTime = counter:time()
screen:print(10,10,"Counter Time: " .. currentTime,white)
if currentTime < 1000 then
screen:print(100,100,"Less than 1000",white)
end
if currentTime > 1000 and currentTime < 2000 then
screen:print(100,100,"Greater than 1000",yellow)
end
if currentTime > 2000 then
counter:reset(0)
counter:start()
end
if pad:cross() then
counter:stop()
screen:print(75,150,"PAUSED --Press O to resume",green)
end
if pad:circle() then
counter:start()
end
if pad:start() then
break
end
screen.waitVblankStart()
screen.flip()
end
__________________
------------------------------------------------------------------------------------ A true master of control is one who never seems to be in control ------------------------------------------------------------------------------------ |
|
#2
|
|||
|
|||
|
Anyone at all? I mean I know this section is dead but still...
Wait.. its not dead, I heard a cricket chirping in the background. :lol:
__________________
------------------------------------------------------------------------------------ A true master of control is one who never seems to be in control ------------------------------------------------------------------------------------ |
|
#3
|
|||
|
|||
|
add this at the end of your code. Maybe this will help
Code:
screen.flip() while true do screen.waitVblankStart() end Hope this help, if you didnt get it.
__________________
Have you ever want to use your computer away from your home? Do you wish you can have your desktop/laptop at the palm of your hand. Comming soon within 2008, homebrew program call \"NetPlay\" which will allow you to use your computer where ever you go. Ether through Adhoc or Wifi, it can be done. All you need is a router, for wifi, or a wifi card/adapter for adhoc. Goto http://www.psp-hacks.com/forums/viewtopic.php?id=146907 and learn more. |
|
#4
|
|||
|
|||
|
your code should be this
Code:
white = Color.new(255,255,255)
yellow = Color.new(255,255,0)
green = Color.new(0,255,0)
counter = Timer.new()
counter:start()
while true do
screen:clear()
screen.flip()
pad = Controls.read()
currentTime = counter:time()
screen:print(10,10,"Counter Time: " .. currentTime,white)
if currentTime < 1000 then
screen:print(100,100,"Less than 1000",white)
end
if currentTime > 1000 and currentTime < 2000 then
screen:print(100,100,"Greater than 1000",yellow)
end
if currentTime > 2000 then
counter:reset(0)
counter:start()
end
if pad:cross() then
counter:stop()
screen:print(75,150,"PAUSED --Press O to resume",green)
end
if pad:circle() then
counter:start()
end
if pad:start() then
break
end
screen.waitVblankStart()
screen.flip()
end
__________________
![]() Email me your lua scripts ill fix them or help you fix them and Email you back on what you wanted :D |
![]() |
|
|
|||
|
|||
|
|
| Thread Tools | |
| Display Modes | |
|
|