Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Is Anti Hate here?

Author
Message
Drew Cameron
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 2nd Jul 2004 02:15
You asked how I created a scrolling game a while back in one of my threads, yet I rudely forgot to reply.

Let's say that you have 3 sprites that you want to scroll left.

Each is positioned at intervals of 50.



By adding an variable to each sprites X co-ordinate, you can then decrease it so that they all move left!

Basically try this out; (YOU NEED AN IMAGE FILE CALLED "pic.bmp")



That's basically how you scroll stuff. To make them scroll right, just change "dec x" to "inc x". Have a fiddle around with this code and see what you learn.

If you want any more help, just let me know.

Login to post a reply

Server time is: 2025-05-24 19:42:27
Your offset time is: 2025-05-24 19:42:27