LUA Sidescrolling help!
ok, i am trying to port a game thats is hours of fun.
but its sidescrolling, and i want to have it ofcourse, sidescrolling and endless too, so does anybody know what the little code snippet is?
Also, i want this one backround image to go endlessly in sidescrolling, but with a image blitted ontosnippet it too, so basically,
i want a backround to scroll and a couple randomly placed images to also scroll endlessly
can someone please help me with this code snippet?:(
funny, I had just made this today for a new project.
I dont want to copy-paste my code, so heres how I have it:
I have a number, bgX, that it default 0
now, think about this, I said that if its < 0, blit the image at bgX and bgX+479
if its after 0, then make it bgX - 480
if its less than -(480-480) make it -480
if you push left or right, make bgX + or - 1.
if you need further help, feel free to PM/AIM/MSN/GoogleTalk me