Tired of adding all of those needless blocks? Tired of adding all of those needless sprites?
Well it is possible to scroll using only 2 terrains
Your character can move by scrollx
Terrain1
It is important to name this sprite terrain1
<when green flag clicked>
<set x to( scrollx*480+0 )
<forever if>sprite1(main character that walks) touches terrain2
<set x to( scrollx*480+1 )
and keep on continueing this method but changing the second #from the scrollx word
Terrain2
It is important to name this sprite terrain2
all you have to do is the same thing as Terrain1 but instead of the when touches terrain2 you make it terrain1
JUST PUT IN A CHANGE COSTUME SCRPIT IN THERE TO CHANGE THE LOOK OF THE SPRITE
RIGHT OW THERE IS A GLITCH, GIVE ME A FEW SECONDS TO GET RID OF THE GLITCH (THIS MAY TAKE UP TO 20 MINUTES, PLZ BE PATIENT )
I DID NOT TEST THIS OUT YET
HOWEVER I AM SURE THAT IT WILL WORK
Last edited by zachandrew0123 (2008-05-26 10:31:53)
Offline
Yeah, I saw that in dingdongs game. It should work.
Offline
I can tell from the way this looks now that it may not work. I have already made a tutorial on how to scroll with 2 sprites and the tutorial can be located @ http://scratch.mit.edu/forums/viewtopic.php?id=2440
Also, if this did work, because the terrain sprites use an "if touching sprite" block projects made with this will not be able to have terrain sprites with blank spots in them which forces the programmer to use colour sensing for his hero sprite.
Offline