Sign in to follow this  
praveen

scrolling image(Urgent)

Recommended Posts

praveen    122
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
jbadams    25712
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this