Jump to content
  • Advertisement
Sign in to follow this  
praveen

scrolling image(Urgent)

This topic is 4442 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 just want to scroll a image on canvas but when i use a loop it is scrolling at time fro top to bottom,but my intention is to scroll it slowly ,iam able to scroll back ground image but ineed to scroll the front end image.I require some help regarding this issue(urgent).

Share this post


Link to post
Share on other sites
Advertisement
You need to move the image based on time elapsed, either by moving it a fixed distance every <your chosen time interval> or by figuring out every frame how much time has elapsed and moving it a suitable number of pixels.

Try searching for more information using the search terms "time based movement", or "fixed update rate".

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!