sorry to hear that, thats tuff luck man.
Printable View
sorry to hear that, thats tuff luck man.
how do i say a number thro a number? like 1-100?
SG57, try this for that pixel thing you asked about.
pad = Controls.read()
If x>0 and x<50 and y>0 and y<50 and then
screen:blit(........
ya i kno but my cursor keeps freezing when i do and my picture wont blit unless i move it first so any help?
Hmm... perhaps its supposed to be WHEN or WHILE x>0 and x<50 and y>0 and y<50 and do
screen:blit(........
But I dont really know =(
How fast does a "while true do" loop go? loop everytime the screen refreshes?
it makes the luaplayer read what ever is in the while true do loop over infinently as fast as the processor can handle
any one have a menu example they could post? im looking 4 examples
im running 2.0. I go to lua player. I press circle on "smileys" lua script. nothing happens... psp doesnt freeze.. cuz if you press start it restarts the menu and evetything works fine.. heres the code (its my first program so dont be too mean) and yes all of my image placements are meant to be (0, 0)
System.usbDiskModeActivat e()
background = Image.load("background.jp g")
shot a = Image.load("shot a.jpg")
shot b= Image.load("shot b.jpg")
shot c = Image.load("shot c.jpg")
shot d = Image.load("shot d.jpg")
shot e = Image.load("shot e.jpg")
shot f = Image.load("shot f.jpg")
shot g = Image.load("shot g.jpg")
shot h = Image.load("shot h.jpg")
dribble a = Image.load("dribble a.jpg")
dribble b = Image.load("dribble b.jpg")
dribble c = Image.load("dribble c.jpg")
screen:blit (0, 0, background, false)
screen.waitVblankStart()
screen.flip()
while true do
screen:blit(0, 0, background, false)
pad = Controls.read()
if pad:square() then
screen:blit(0, 0, dribble a)
screen.flip()
screen:blit(0, 0, dribble b)
screen.flip()
screen:blit(0, 0, dribble c)
screen.flip()
end
if pad:circle() then
screen:blit(0, 0, shot a)
screen.flip()
screen:blit(0, 0, shot b)
screen.flip()
screen:blit(0, 0, shot c)
screen.flip()
screen:blit(0, 0, shot d)
screen.flip()
screen:blit(0, 0, shot e)
screen.flip()
screen:blit(0, 0, shot f)
screen.flip()
screen:blit(0, 0, shot g)
screen.flip()
screen:blit(0, 0, shot h)
screen.flip()
screen:blit (0, 0, background, false)
screen.waitVblankStart()
screen.flip()
end
get rid of all those screen.flips in the while statement. Just need the one at the end