This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-09 13:51:26

farterfive
Scratcher
Registered: 2010-12-17
Posts: 8

How to make a Never Ending |Scroller?

How to make a Never Ending <change y by( Scroller?<change y by(

Offline

 

#2 2011-05-09 16:58:21

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: How to make a Never Ending |Scroller?

Make a variable called X; replace all <change x by( _ )> in the main sprite with <change{ X }by( _ )>.  In all the "land sprites" put:

<when green flag clicked>
<forever>
<set x to( (( (( <{ X }> <*> -1 )) <+> AmountToShiftOver )) )>
<end>

This way, the main sprite stands still, and everything moves around it instead.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#3 2011-05-09 18:30:33

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: How to make a Never Ending |Scroller?

Here's an example:
http://scratch.mit.edu/projects/Kileyme … st/1605362

You can look at the scripts or remix it and add costumes to the background sprite.


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

Board footer