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.

Dark GDK / 2D sidescrolling

Author
Message
Gaelbin
15
Years of Service
User Offline
Joined: 16th Feb 2009
Location:
Posted: 2nd May 2009 03:25
Hey, so I have yet to get a straight answer on this problem. Is there an easy way to achieve side scrolling without having to move the background? That is, can I make a camera or somehow move the window's frame of reference?

Thanks everyone!
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 2nd May 2009 13:44
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 4th May 2009 05:02
Quote: "dbMoveCameraRight()"


The OP is talking 2D.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 4th May 2009 05:06
I thought I provided an answer in another thread. Use the dbSetSpriteTextureCoord () function to select the section of an image that you want to use as back ground. It would have to be a massive image, however. If you need to security a camera would bring you, write your own function to do the above but make it behave like a camera.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office

Login to post a reply

Server time is: 2024-11-05 18:40:40
Your offset time is: 2024-11-05 18:40:40