forever scroll

Install Java to view this project right on your browser!

user_icon jsw shared it 3 years, 7 months ago
11 views, 1 tagger, 1 remix by 1 person, 4 downloads
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
jsw jsw 3 years, 7 months ago

This allows for the background to scroll forever. You need two "background" sprites. Each of these sprites are approximately 230 pixels in width. Then duplicate both. Have them scroll past but use the modulo function in the position call to allow for it to "wrap" back around to pass in front again and agian. The variable mod MUST be equal to the width of the two sprites together. It is easy to experiment with this variable and make it look nice.

Please Wait...