well there seems to be a lot about horizontal scrolling
but not much on vertical scrolling backgrounds
so im trying to make a game similar to 1945 but i cant get a vertical scrolling background to work
so far, i would like to use 5 or so sprites to make the background
I tried converting a horizontal scroller to a vertical one (using the idea above) but it didnt work out too well
so can anyone tell me how to do it this way?
examples are fine too
-thanks in advance
Offline
[blocks]<when green flag clicked>[/blocks]
[blocks]<forever if><key[ up arrow ]pressed?>[/blocks]
[blocks]<change{scrolly }by( -5>[/blocks]
As for sprites:
[blocks]<when green flag clicked>[/blocks]
[blocks]<forever>[/blocks]
<set y to( ((<{scrollY }> <+> (( 360 <*> 1 )) ))[/blocks]
And so on...
Last edited by Bluestribute (2008-05-06 23:31:38)
Offline
yeah i got that but if i have like 5 sprites
when and where to i show the next one?
Offline
Just use the second script, but change the 1 to: 0, 1, 2, 3, 4, and 5 on different sprites, and when scrollY gets to a certain number, set it to 0
Last edited by Bluestribute (2008-05-06 23:54:08)
Offline
I started a vertical scroller that you may be able to get ideas from or add to. Have a look at RedBaron and see if that is helpful to you. Please feel free to use as desired.
http://scratch.mit.edu/projects/EdnaC/116094
-MrEd
Last edited by EdnaC (2008-05-07 12:04:57)
Offline
There are plenty of exaples of vertical scrolling if you search the site. but heres an example of 4 way scrolling tht includes a scrolly variable http://scratch.mit.edu/projects/Sacrifice4u/157124
Last edited by Sacrifice4u (2008-05-08 20:33:08)
Offline