help

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
mafia1ft
Posts: 17
Joined: Wed Mar 29, 2006 4:45 pm

help

Post by mafia1ft »

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

Code: Select all

-- 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 &#40;variable <= 14&#41; do 
screen&#58;clear&#40;&#41;
variable = variable + 1 
pad = Controls.read&#40;&#41;

screen&#58;blit&#40;0, 0, shoot0&#41;

if &#40;variable==1&#41; then
screen&#58;blit&#40;0, 0, shoot0&#41;
end

if &#40;variable==2&#41; then
screen&#58;blit&#40;0, 0, shoot1&#41;
end

if &#40;variable==3&#41; then
screen&#58;blit&#40;0, 0, shoot2&#41;
end

if &#40;variable==4&#41; then
screen&#58;blit&#40;0, 0, shoot3&#41;
end

if &#40;variable==5&#41; then
screen&#58;blit&#40;0, 0, shoot4&#41;
end

if &#40;variable==6&#41; then
screen&#58;blit&#40;0, 0, shoot5&#41;
end

if &#40;variable==7&#41; then
screen&#58;blit&#40;0, 0, shoot6&#41;
end

if &#40;variable==8&#41; then
screen&#58;blit&#40;0, 0, shoot1&#41;
end

if &#40;variable==9&#41; then
screen&#58;blit&#40;0, 0, shoot2&#41;
end

if &#40;variable==10&#41; then
screen&#58;blit&#40;0, 0, shoot3&#41;
end

if &#40;variable==11&#41; then
screen&#58;blit&#40;0, 0, shoot4&#41;
end

if &#40;variable==12&#41; then
screen&#58;blit&#40;0, 0, shoot5&#41;
end

if &#40;variable==13&#41; then
screen&#58;blit&#40;0, 0, shoot6&#41;
end

if &#40;variable==14&#41; then
dofile&#40;"fire.lua"&#41;
end





if pad&#58;start&#40;&#41; then
break
end


screen.waitVblankStart&#40;10&#41;
screen.flip&#40;&#41;
end
CheChin
Posts: 8
Joined: Thu Aug 04, 2005 10:51 am

Post by CheChin »

green = Color.new(0,255,0

you forgot a ")"
Post Reply