![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on why wont my pic load?? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; yes another question from me but hey i'm new anywho i believe ive goten it all right and no errors ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() Developer
|
yes another question from me but hey i'm new anywho i believe ive goten it all right and no errors but my dam image will not load!! i saved it as png maybe im putting it in the wrong line but this is what i write:
System.usbDiskModeActivat e() green=Color.new(0,255,0) orange=Color.new(255,128, 0) teal=Color.new(64,128,128 ) blue=Color.new(0,0,255) red=Color.new(255,0,0) black=Color.new(0,0,0) lightgreen=Color.new(18,6 1,36) lightyellow=Color.new(165 ,157,67) textX = 300 textY = 100 textColor=blue background = Image.load("pic/background") while true do screen:clear() pad=Controls.read() if pad:cross() then textColor=green elseif pad:triangle() then textColor=orange elseif pad:circle() then textColor=blue elseif pad:square() then textColor=red elseif pad:start() then textColor=teal elseif pad:l() then textColor=lightgreen elseif pad:r() then textColor=lightyellow end if pad:up() then textY=textY-5 elseif pad:down() then textY=textY+5 elseif pad:left() then textX=textX-5 elseif pad:right() then textX=textX+5 end screen rint(textX, textY, "hello people here!",textColor)screen.waitVblankStart() screen.flip() end i made it in paint and its just a yellow background i also made a folder named pic right where my script is and threw my pic background in the i just dont no why it wont work can some1 help me p.s. i use lua
__________________
1. Failed....again... 2. http://slicer.gibbocool.com/ stay updated on all my projects |
|
|
|
|
|
#2 |
![]() |
pic.background
__________________
[SIZE=2][FONT=Verdana][SIZE=3][U][B]3 YEAR VETERAN[/B][/U][/SIZE][SIZE=3][FONT=Arial Black] [/FONT][/SIZE][/FONT][/SIZE]Thanks to the following whose ever made me a sig/av. [U][I][FONT=Impact] [/FONT][/I][/U] |
|
|
|
|
|
#3 |
![]() Developer
|
try this:
Code:
System.usbDiskModeActivate()
green=Color.new(0,255,0)
orange=Color.new(255,128, 0)
teal=Color.new(64,128,128 )
blue=Color.new(0,0,255)
red=Color.new(255,0,0)
black=Color.new(0,0,0)
lightgreen=Color.new(18,6 1,36)
lightyellow=Color.new(165 ,157,67)
textX = 300
textY = 100
textColor=blue
background = Image.load("pic/background.png") --make sure this is the correct path
while true do
screen:clear()
pad=Controls.read()
if pad:cross() then textColor=green
elseif pad:triangle() then textColor=orange
elseif pad:circle() then textColor=blue
elseif pad:square() then textColor=red
elseif pad:start() then textColor=teal
elseif pad:l() then textColor=lightgreen
elseif pad:r() then textColor=lightyellow
end
if pad:up() then textY=textY-5
elseif pad:down() then textY=textY+5
elseif pad:left() then textX=textX-5
elseif pad:right() then textX=textX+5
end
screen:blit(0, 0, background, 0, 0, background:width(), background:height(), false)
screen:print(textX, textY, "hello people here!",textColor)
screen.waitVblankStart()
screen.flip()
end
Last edited by Dark Killer; 10-20-2005 at 05:05 PM.. |
|
|
|
|
|
#4 |
![]() ![]() Developer
|
thanks a ton that really helps but now 2 questions one what does blit the line blit tell the psp with all the 00's and everything that well really help me so i know what i am doing and how do i make it to take up the whole screen not just a portian
thanks
__________________
1. Failed....again... 2. http://slicer.gibbocool.com/ stay updated on all my projects |
|
|
|
![]() |
| Tags |
| load , pic |
| Thread Tools | |
|
|