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.
Comments
You need to be logged in to post comments
Add a Comment
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.