How do you make a scroller where both y and x move? I tried it and the the velocity and positioning worked, but some platforms were showing, even when scroll x or scroll y didn't equal there position. Please help!
Offline
http://scratch.mit.edu/projects/vortex19/704112
Basically you make a scroll-x and a scroll-y variable. If you know how to make a simple scroller game (something along the lines of Mario or Sonic), then you can apply that to the y-axis as well as the x-axis. Otherwise, there's a lot of tutorials (i think archmage has some) on how to do 4-way scrolling.
Offline
vortex19 wrote:
http://scratch.mit.edu/projects/vortex19/704112
Basically you make a scroll-x and a scroll-y variable. If you know how to make a simple scroller game (something along the lines of Mario or Sonic), then you can apply that to the y-axis as well as the x-axis. Otherwise, there's a lot of tutorials (i think archmage has some) on how to do 4-way scrolling.
Well, that's what I tried and the positing worked, but when I went up the platforms below me were still showing at the bottom of the screen.
Offline
bdn7 wrote:
vortex19 wrote:
http://scratch.mit.edu/projects/vortex19/704112
Basically you make a scroll-x and a scroll-y variable. If you know how to make a simple scroller game (something along the lines of Mario or Sonic), then you can apply that to the y-axis as well as the x-axis. Otherwise, there's a lot of tutorials (i think archmage has some) on how to do 4-way scrolling.Well, that's what I tried and the positing worked, but when I went up the platforms below me were still showing at the bottom of the screen.
Hmm, it sounds like you encountered one of Scratch's limitations (the inability for sprites to go fully offscreen). You can create a sprite that goes around the sides of the stage and continually stays in the front to ensure that the platforms are not shown. (You can see this example in my four-way scroller here. Notice how there's a border that goes on all sides around the stage when the gameplay is started).
Offline
cheddargirl wrote:
bdn7 wrote:
vortex19 wrote:
http://scratch.mit.edu/projects/vortex19/704112
Basically you make a scroll-x and a scroll-y variable. If you know how to make a simple scroller game (something along the lines of Mario or Sonic), then you can apply that to the y-axis as well as the x-axis. Otherwise, there's a lot of tutorials (i think archmage has some) on how to do 4-way scrolling.Well, that's what I tried and the positing worked, but when I went up the platforms below me were still showing at the bottom of the screen.
Hmm, it sounds like you encountered one of Scratch's limitations (the inability for sprites to go fully offscreen). You can create a sprite that goes around the sides of the stage and continually stays in the front to ensure that the platforms are not shown. (You can see this example in my four-way scroller here. Notice how there's a border that goes on all sides around the stage when the gameplay is started).
I see how that works. Thanks!
Offline