View Full Version : wacky Display
Metal_kid
03-24-2006, 09:47 PM
Right i worte this script and when i run it on windows luaplayer and the psp one i get a picture like waht you get on television when the video camera is aimed at a monitor could someone take a look and tell me whats wrong heres the script:
font = Font.load("TempsITC.TTF")
black = Color.new(255,255,255)
screen:clear()
font:setPixelSizes(0,14)
white = Color.new(255,255,255)
ImgBG = Image.load("BG.png")
screen:clear()
screen:blit(0,0,ImgBG)
screen.flip()
while true do
screen:print(120,135,"Hello World!", white)
screen.flip()
end
while true do
pad = Controls.read()
if pad:start() then break end
end
Thanks!!!
soulkiller
03-24-2006, 11:06 PM
well for one i wouldn't have two seprate loops secondly in the new main loop put a screen:clear() at the begging and a screen.waitVblankStart() at the end of the loop oh and your going to have to put the image draw in the loop
Metal_kid
03-25-2006, 07:35 AM
Thanks i'll try that out later!
littlejag
05-14-2006, 10:26 AM
......
littlejag
05-14-2006, 10:28 AM
......
littlejag
05-14-2006, 10:30 AM
......
littlejag
05-14-2006, 10:32 AM
......
littlejag
05-14-2006, 10:34 AM
......
littlejag
05-14-2006, 10:37 AM
......
littlejag
05-14-2006, 10:39 AM
......
littlejag
05-14-2006, 10:41 AM
......
pspHappy
05-14-2006, 10:42 AM
OMFG!
7 posts ov ................
what the fuck have you been smoking!
i would say dont double post but you
just take the piss
7 posts
littlejag
05-14-2006, 10:43 AM
......
littlejag
05-14-2006, 10:45 AM
......
pspHappy
05-14-2006, 10:47 AM
Dude are you stoned..................
or sleeping........zzzzzzzzzzzzzZZZZZZZz
or is it some sort ov secret code ....................
........ ....... ....... ..... .
wake the fuck up !
LMAO
ST@TIC
11-22-2006, 03:00 PM
Dude ther is quite a bit wrong with that code let me help you out..
font = Font.load("TempsITC.TTF")
black = Color.new(255,255,255) -- black is 0,0,0
screen:clear() -- not needed
font:setPixelSizes(0,14)
white = Color.new(255,255,255)
ImgBG = Image.load("BG.png")
screen:clear()
screen:blit(0,0,ImgBG) -- this is going to happen for a millisecond then disapear
screen.flip()
while true do
--need screen:clear() here
screen:print(120,135,"Hello World!", white) -- [[should be screen:fontPrint(font,120,135,"Hello World,white")]]--
screen.flip()
end -- never exits the loop so u cant do the next loop
while true do
pad = Controls.read() ---all useless cause of infinite loop above
if pad:start() then break end
end
just to be nice =D i will redo it for u:
font = Font.load("TempsITC.TTF")
black = Color.new(0,0,0)
font:setPixelSizes(0,14)
white = Color.new(255,255,255)
ImgBG = Image.load("BG.png")
while true do
screen:clear()
screen:blit(ImgBG,0,0)
screen:fontPrint(font,120,135,"Hello World!",white)
screen:flip()
pad = Controls.read()
if pad:start() then break end
end
vBulletin® v3.8.5, Copyright ©2000-2010, Jelsoft Enterprises Ltd.