I'm getting an error:
"then" expected near Character
SCREEN_TOP = 1
SCREEN_BOTTOM = 0
Screen.Initialize( SCREEN_TOP, BGTopText )
Sprite.LoadPalette( SCREEN_TOP, PALETTE_GAIM, "sprite.pal" )
Character = PALLETE_GAIM
Character = { X = 0, Y = 0 }
function Character.MoveLeft()
Character.X = Character.X - 1
end
Character = { X = 0, Y = 0 }
function Character.MoveRight()
Character.X = Character.X + 1
end
Character = { X = 0, Y = 0 }
function Character.MoveUp()
Character.Y = Character.Y + 1
end
Character = { X = 0, Y = 0 }
function Character.MoveDown()
Character.Y = Character.Y - 1
end
while true do
if Pads.Left() then
Character.MoveLeft()
end
if Pads.Right() then
Character.MoveRight()
end
if Pads.Up() then
Character.MoveUp()
end
if Pads.Down()
Character.MoveDown()
end
if Pads.Start() then
break
end
end
I'm just throwing this together to get the hang of moving a sprite around, but all the errors that I've gotten so far have had nothing to do with moving the sprite, just general coding errors. I'm kinda getting disappointed :/