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.

2D All the way! / How do you do scrolling?

Author
Message
Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Aug 2007 01:52 Edited at: 6th Aug 2007 01:54
I've tried everything.From camera commands to moving the actual level. HOW do you do smooth side scrolling!??
MonoCoder
19
Years of Service
User Offline
Joined: 4th Dec 2005
Location: england
Posted: 6th Aug 2007 02:00
Have camera x and y variables, and subtract them from the draw coordinates of everything in your level.

Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Aug 2007 02:03
that worked. only one problem. i can't see the character anymore after that.
MonoCoder
19
Years of Service
User Offline
Joined: 4th Dec 2005
Location: england
Posted: 6th Aug 2007 02:06
Have you tried adjusting the values to scroll him back in?

Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Aug 2007 02:08
yeah i did.....no luck.
MonoCoder
19
Years of Service
User Offline
Joined: 4th Dec 2005
Location: england
Posted: 6th Aug 2007 02:09
Hmm. Can I have a gander at the code in question?

Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Aug 2007 02:11
oh..wait a sec. i used the wrong varibles,it's working now
MonoCoder
19
Years of Service
User Offline
Joined: 4th Dec 2005
Location: england
Posted: 6th Aug 2007 02:12
Ah, good for you.

Dark Dragon
18
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 6th Aug 2007 02:13

Login to post a reply

Server time is: 2025-08-09 02:10:06
Your offset time is: 2025-08-09 02:10:06