Right place sprite at map
how to place a sprite on the map correctly ? (buttom, center, margin buttom 5)
my code right now is:
init = function()
me = object
x = 0
y = 0
end
end
update = function()
if (keyboard.UP) then me.y+=1 end
if (keyboard.DOWN) then me.y-=1 end
if (keyboard.LEFT) then me.x-=1 end
if (keyboard.RIGHT)then me.x+=1 end
end
draw = function()
screen.clear()
screen.drawMap("map1",0,80,screen.width,screen.height*10)
screen.drawSprite("me",me.x, me.y)
end