post your source. and we'll look at it. somewhere you have a problem with a variable called image that you're trying to do something with. you probably defined it twice for two different things.. so post your source.
This is how much iv dun lttle but i will work on if this much works. the game loads and has a black screen nuthin loads up wat do i do???
-- Slime Volleyball by Nomi
System.usbDiskModeActivate()
player=Image.load("slimeplayer.png")
player2=Image.load("slimeplayer2.png")
background=Image.load("Slimecourt.png")
screenwidth = 480 - player:width()
screenheight = 272 - player:width()
while true do
screen:clear()
screen:blit(0,0,background, true)
end
-- Arrays
Player = {}
Player[1] = { x = 30, y = 100 }
Player2 = {}
Player[2] = {x = 400, y = 100 }
function movePlayer()
pad = Controls.read()
if pad:left() then
Player[1].x = Player[1].x - 6
direction = "left"
end
end
if pad:right() then
Player[1].x = Player[1].x + 6
direction = "right"
end
function movePlayer2()
if pad:square() then
Player[2].x = Player[2].x - 6
direction2 = "left"
end
end
if pad:circle() then
Player[2].x = Player[2].x + 6
direction2 = "right"
end
post your source. and we'll look at it. somewhere you have a problem with a variable called image that you're trying to do something with. you probably defined it twice for two different things.. so post your source.
heres ma source now it dont give a image error i juss get a black screen when i try to load the game. what is wrong PLZ help!!!
-- Slime Volleyball by Nomi
System.usbDiskModeActivate()
player=Image.load("slimeplayer.png")
player2=Image.load("slimeplayer2.png")
background=Image.load("Slimecourt.png")
screenwidth = 480 - player:width()
screenheight = 272 - player:width()
while true do
screen:clear()
screen:blit(0,0,background, true)
end
-- Arrays
Player = {}
Player[1] = { x = 30, y = 100 }
Player2 = {}
Player[2] = {x = 400, y = 100 }
function movePlayer()
pad = Controls.read()
if pad:left() then
Player[1].x = Player[1].x - 6
direction = "left"
end
end
if pad:right() then
Player[1].x = Player[1].x + 6
direction = "right"
end
function movePlayer2()
if pad:square() then
Player[2].x = Player[2].x - 6
direction2 = "left"
end
end
if pad:circle() then
Player[2].x = Player[2].x + 6
direction2 = "right"
end
put end after the function pad=controls.read()
-- Slime Volleyball by Nomi
-- THIS SHOULD BE A WORKING GAME.
System.usbDiskModeActivate()
player=Image.load("slimeplayer.png")
player2=Image.load("slimeplayer2.png")
background=Image.load("Slimecourt.png")
-- Arrays
Player = {}
Player[1] = { x = 30, y = 100 }
Player2 = {}
Player[2] = {x = 400, y = 100 }
screenwidth = 480 - player:width()
screenheight = 272 - player:width()
function movePlayer()
pad = Controls.read()
if pad:left() then
Player[1].x = Player[1].x - 6
direction = "left"
end
if pad:right() then
Player[1].x = Player[1].x + 6
direction = "right"
end
end
function movePlayer2()
if pad:square() then
Player[2].x = Player[2].x - 6
direction2 = "left"
end
if pad:circle() then
Player[2].x = Player[2].x + 6
direction2 = "right"
end
end
while true do
screen:clear()
screen:blit(0,0,background, true)
movePlayer()
movePlayer2()
screen:blit (Player[1].x,Player[1].y,player)
screen:blit (Player[2].x,Player[2].y,player2)
screen:flip()
screen:waitVblankStart()
end
now it gives me a error that sayas
error:SCRIPT.LUA: 39: loop in gettable
what do i do now
-- Slime Volleyball by Nomi
System.usbDiskModeActivate()
player=Image.load("slimeplayer.png")
player2=Image.load("slimeplayer2.png")
background=Image.load("Slimecourt.png")
-- Arrays
Player = {}
Player[1] = { x = 30, y = 100 }
Player2 = {}
Player[2] = {x = 400, y = 100 }
screenwidth = 480 - player:width()
screenheight = 272 - player:width()
function moveplayer()
pad = Controls.read()
if pad:left() then
player[1].x = player[1].x - 6
direction = "left"
end
if pad:right() then
player[1].x = player[1].x + 6
direction "right"
end
end
function moveplayer2()
if pad:square() then
player[2].x = player[2].x - 6
direction2 "left"
end
if pad:circle() then
player[2].x = player[2].x + 6
direction2 = "right"
end
end
while true do
screen:clear()
screen:blit(0,0,background,true)
moveplayer()
moveplayer2()
screen:blit(Player[1].x,Player[1].y,player)
screen:blit(Player[2].x,Player[2].y,player2)
screen.waitVblankStart()
screen.flip()
end
System.usbDiskModeActivate()
player=Image.load("slimeplayer.png")
player2=Image.load("slimeplayer2.png")
background=Image.load("Slimecourt.png")
-- Arrays
Player = {}
Player[1] = { x = 30, y = 100 }
Player2 = {}
Player[2] = {x = 400, y = 100 }
screenwidth = 480 - player:width()
screenheight = 272 - player:width()
function moveplayer()
pad = Controls.read()
if pad:left() then
player[1].x = player[1].x - 6
direction = "left"
end
if pad:right() then
player[1].x = player[1].x + 6
direction = "right"
end
end
function moveplayer2()
if pad:square() then
player[2].x = player[2].x - 6
direction2 = "left"
end
if pad:circle() then
player[2].x = player[2].x + 6
direction2 = "right"
end
end
while true do
screen:clear()
screen:blit(0,0,background,true)
moveplayer()
moveplayer2()
screen:blit(Player[1].x,Player[1].y,player)
screen:blit(Player[2].x,Player[2].y,player2)
screen.waitVblankStart()
screen.flip()
end
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks