forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New to lua so plz help!

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
robby22



Joined: 15 Mar 2008
Posts: 2

PostPosted: Sat Mar 15, 2008 10:23 am    Post subject: New to lua so plz help! Reply with quote

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
View user's profile Send private message
PiCkDaT



Joined: 04 Oct 2007
Posts: 69

PostPosted: Sat Mar 15, 2008 4:35 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
romero126



Joined: 24 Dec 2005
Posts: 200

PostPosted: Sun Mar 16, 2008 8:47 am    Post subject: Reply with quote

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
View user's profile Send private message
robby22



Joined: 15 Mar 2008
Posts: 2

PostPosted: Sun Mar 16, 2008 10:08 am    Post subject: Reply with quote

thanks u guys! at first i was a bit confused but now i'm not! thanks again!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group