Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Scrolling with sdl

This topic is 5282 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have a little problem. I have a screen with x sprites, etc. I want to scroll the x pixels up, left, rifgt, and down when i want. I canot just put xpos+1 to all the sprites, because i dont have the cntroll of sprites. What i need is like to copy everithing and paste it 4 pixels right... More less like that. Im usin very low resolution 64x32. Also im using SDL. with its sdl surfaces. And an array that stores all the pixels that will be copied to the surface.

Share this post

Link to post
Share on other sites
no no.
I cannot move any sprite, image, anything that way.
I want to scroll everything in screen to the right ...

I cannot depend on the graphics position

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!