You can do:
img = {}
img = {x = 200, y = 20, img = YOURIMAGE }
then,
if Controls.read():down then
img.y = img.y +2
end
if Controls.read():up then
img.y = img.y -2
end
screen:blit(img.x,img.y,img.img)
I need a code so that when you press down on the D-Pad the image scrolls downwards, and up being vice versa. Help![]()
Miniviews:
Spoiler!
Ummm, i'm gussing its a full screen image, xandu. Why blit it at 200 on the x axis...?
Meh... either way, that would work.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks