| View previous topic :: View next topic |
| Author |
Message |
robby22
Joined: 15 Mar 2008 Posts: 2
|
Posted: Sat Mar 15, 2008 10:23 am Post subject: New to lua so plz help! |
|
|
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! |
|
| Back to top |
|
 |
PiCkDaT
Joined: 04 Oct 2007 Posts: 69
|
Posted: Sat Mar 15, 2008 4:35 pm Post subject: |
|
|
| Code: |
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 |
|
| Back to top |
|
 |
romero126
Joined: 24 Dec 2005 Posts: 200
|
Posted: Sun Mar 16, 2008 8:47 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
robby22
Joined: 15 Mar 2008 Posts: 2
|
Posted: Sun Mar 16, 2008 10:08 am Post subject: |
|
|
| thanks u guys! at first i was a bit confused but now i'm not! thanks again! |
|
| Back to top |
|
 |
|