QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

What's wrong with this?

This is a discussion on What's wrong with this? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Code: bsod = Image.load("images/bsod.png") -- Coding while true do pad = Controls.read() if pad:cross() then bsod_image() end -- Functions function ...

Reply
 
LinkBack Thread Tools
Old 04-08-2006, 08:02 AM   #1
 
Rixorster's Avatar
 
Join Date: Apr 2006
Posts: 109
Trader Feedback: 0
Default What's wrong with this?

Code:
bsod = Image.load("images/bsod.png")

-- Coding

while true do

pad = Controls.read()

if pad:cross() then
bsod_image()
end

-- Functions

function bsod_image()

screen:blit(0, 0, bsod)

end
Why aint that working? <.< (the bsod.png is 480x272)
Rixorster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 08:04 AM   #2
 
Join Date: Jan 2006
Location: stevens bumhole
Posts: 10,308
Trader Feedback: 0
Default

i have no idea... lol
madsoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 08:04 AM   #3

Tha Sigerator
 
Xodiac21's Avatar
 
Join Date: Jul 2005
Location: New Orleans, LA
Posts: 4,047
Trader Feedback: 0
Default

i think u need to add the function BEFORE the while true do
__________________
- - - - Somewhere Lurking in THA SHADOWS - - - -

Check Out My Myspace HERE
Comment My Qj Wiki
Xodiac21 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 08:05 AM   #4

Developer
 
kozine's Avatar
 
Join Date: Mar 2006
Location: Isle of Wight
Posts: 491
Trader Feedback: 0
Default

yea, so this:

Code:
bsod = Image.load("images/bsod.png")

-- Functions

function bsod_image()

screen:blit(0, 0, bsod)

end

-- Coding

while true do

pad = Controls.read()

if pad:cross() then
bsod_image()
end
__________________


PM me for a sig like this!

http://dspspforums.com/forums/index.php SIGN UP NOW!
kozine is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 08:06 AM   #5

Tha Sigerator
 
Xodiac21's Avatar
 
Join Date: Jul 2005
Location: New Orleans, LA
Posts: 4,047
Trader Feedback: 0
Default

yea..
__________________
- - - - Somewhere Lurking in THA SHADOWS - - - -

Check Out My Myspace HERE
Comment My Qj Wiki
Xodiac21 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 08:19 AM   #6
Mindless Fanboy
 
Join Date: Mar 2006
Posts: 1,907
Trader Feedback: 0
Default

is it not bsodImage?
FLai is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 08:23 AM   #7
 
Rixorster's Avatar
 
Join Date: Apr 2006
Posts: 109
Trader Feedback: 0
Default

yaya, thanks xod, i forgot that <.<
Btw, problems with sounds <.<
(hole code)
Code:
-- Variables

mn_sel = 1 -- Selection
white = Color.new(255, 255, 255)
red = Color.new(255, 50, 0)
bsod = Image.load("images/bsod.png")
monster = Sound.load("sounds/monsterkill.wav",false)
playing = 0


-- Functions

function bsod_image()

screen:blit(0, 0, bsod)

if playing == 0 then
local sound = monster
voice = sound:play()
end
if playing == 1 then
voice:stop()
end

end

-- Coding

while true do

pad = Controls.read()
screen:clear()
playing = 0

if pad:up() then
mn_sel = mn_sel + 1
if mn_sel >= 2 then
mn_sel = 2
end
end

if pad:down() then
mn_sel = mn_sel - 1
if mn_sel < 1 then
mn_sel = 0
end
end

if mn_sel == 1 then
screen:print(180, 130, "-Start Unreal Pwnat0r", red)
screen:print(180, 140, "Exit", white)
if pad:cross() then
bsod_image()
end

end

if mn_sel == 2 then
screen:print(180, 130, "-Start Unreal Pwnat0r", red)
screen:print(180, 140, "Exit", white)
if pad:cross() then
bsod_image()
end
end

if mn_sel == 0 then
screen:print(180, 130, "Start Unreal Pwnat0r", white)
screen:print(180, 140, "-Exit", red)
if pad:cross() then
bsod_image()
end
end

screen:flip()
screen.waitVblankStart()
end
(it like loops over and over the sound <.< )
Rixorster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 08:50 AM   #8
 
Rixorster's Avatar
 
Join Date: Apr 2006
Posts: 109
Trader Feedback: 0
Default

Anyone? o_o
Rixorster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 09:16 AM   #9

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

if playing == 0 then
local sound = monster
voice = sound:play()
playing = 1
end
if playing == 1 then
voice:stop()
playing = 0
end
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 09:18 AM   #10
 
Rixorster's Avatar
 
Join Date: Apr 2006
Posts: 109
Trader Feedback: 0
Default

still loops the sound <.< darn darn
Rixorster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 09:29 AM   #11

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

take off the bolded:

while true do

pad = Controls.read()
screen:clear()
playing = 0


that is your problem
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 10:52 AM   #12
 
Rixorster's Avatar
 
Join Date: Apr 2006
Posts: 109
Trader Feedback: 0
Default

Still not working <.<
Rixorster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 11:08 AM   #13

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Yeah, I dont know whast wrong, I made the sound only play when it has to, and told it to stop before opening the bsod... oh wait, I think I know. It'll take a bit of code, though. Maybe later.
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
wrong

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 08:32 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us