this is just a example of a scrolling map so it may have some error due to the fact i was doing it in a rush so modifi it as you likeZitat:
//here load your map make sure it larger than 272 in length
map = Image.load("map.png")
//here you load player
player = Image.load("player.png")
//here you have player x and y value
Px=220
Py=250
//here you have the current postion in the map
mapx = 480
mapy = 272
while true do
pad = Controls.read()
//here we clean up the screen so we could prepare to blit the new map postion
screen:clear()
//here we blit the map from were we are in the map picture
screen:blit(0, 0, map, [maplx, maply, 480, 272], [alpha = true])
//here we blit the player
screen:blit(px, py, player)
//here we check if the player x postion is greated than 270 so if it is then we will change the new position of the map
if pad:left() and Px > 270 then
mapx = mapx + 1
end
end
