How Do You Make Your Backgrounds Scroll?? Do You Have To Make Infinite Costumes??????
Offline
Nope, there's a much simpler way.
You might want to take a look at this project, it gives a few scripts that might be able to help you out. (The project should be included in Scratch, but in case you deleted it, that link will work fine.)
Offline
The background in scrollers isn't a stage costume at all! It's a bunch of sprites that just move!
Make two sprites that span the entire x-axis. Then on the first one, put this:
when green flag clicked: Forever Set x to: (scrollX + (480 * 0)) Endforever
And on the second one:
when green flag clicked: Forever Set x to: (scrollX + (480 * 1)) Endforever
Then change the scrollX variable, and see what happens!
You can repeat this pattern with as many background sprites as you want.
Last edited by Harakou (2010-07-18 23:24:59)
Offline
One trick is to keep the player sprite in the middle, then use Scrollx to move everything else around the player while the player sprite costume changes between walking costumes.
Offline