New to lua so plz help!

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
robby22
Posts: 2
Joined: Sat Mar 15, 2008 10:19 am

New to lua so plz help!

Post by robby22 »

Well i have started to make a shell with menus and windows. But, when i try to "blit" the image on "X" press, it just shows up until "X" is pressed and when i release "X", it goes away. Is there anyway i could make it blit forever on the screen when i press "X" ???

Plz help!
PiCkDaT
Posts: 69
Joined: Thu Oct 04, 2007 9:49 pm

Post by PiCkDaT »

Code: Select all

blitImage = false

while true do
   screen:clear()

   if pad:cross() then blitImage = true end

   if blitImage == true then screen:blit(0,0,Image)

   screen:waitVblankStart()
   screen:flip()
end
Enlighten me, Reveal my fate -- Follow - Breaking Benjamin
romero126
Posts: 200
Joined: Sat Dec 24, 2005 2:42 pm

Post by romero126 »

romero126 wrote:*Totally Revamping the way the GUI system works.
See Revamp (WIP)

Updated Jan 02 06
its an old set of code but should help you
robby22
Posts: 2
Joined: Sat Mar 15, 2008 10:19 am

Post by robby22 »

thanks u guys! at first i was a bit confused but now i'm not! thanks again!
Post Reply