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 

help

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



Joined: 29 Mar 2006
Posts: 17

PostPosted: Sun Apr 09, 2006 3:44 pm    Post subject: help Reply with quote

here is the code i use but i get a error and don't know why can someone help me


Code:
-- PSPRR v0.1
-- MADE BY MAFIA1FT

shoot0 = Image.load("PICS/shoot0.png")
shoot1 = Image.load("PICS/shoot1.png")
shoot2 = Image.load("PICS/shoot2.png")
shoot3 = Image.load("PICS/shoot3.png")
shoot4 = Image.load("PICS/shoot4.png")
shoot5 = Image.load("PICS/shoot5.png")
shoot6 = Image.load("PICS/shoot6.png")

green = Color.new(0,255,0
variable = 14
while (variable <= 14) do
screen:clear()
variable = variable + 1
pad = Controls.read()

screen:blit(0, 0, shoot0)

if (variable==1) then
screen:blit(0, 0, shoot0)
end

if (variable==2) then
screen:blit(0, 0, shoot1)
end

if (variable==3) then
screen:blit(0, 0, shoot2)
end

if (variable==4) then
screen:blit(0, 0, shoot3)
end

if (variable==5) then
screen:blit(0, 0, shoot4)
end

if (variable==6) then
screen:blit(0, 0, shoot5)
end

if (variable==7) then
screen:blit(0, 0, shoot6)
end

if (variable==8) then
screen:blit(0, 0, shoot1)
end

if (variable==9) then
screen:blit(0, 0, shoot2)
end

if (variable==10) then
screen:blit(0, 0, shoot3)
end

if (variable==11) then
screen:blit(0, 0, shoot4)
end

if (variable==12) then
screen:blit(0, 0, shoot5)
end

if (variable==13) then
screen:blit(0, 0, shoot6)
end

if (variable==14) then
dofile("fire.lua")
end





if pad:start() then
break
end


screen.waitVblankStart(10)
screen.flip()
end
Back to top
View user's profile Send private message
CheChin



Joined: 04 Aug 2005
Posts: 8

PostPosted: Sun Apr 09, 2006 5:25 pm    Post subject: Reply with quote

green = Color.new(0,255,0

you forgot a ")"
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