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

#1 2008-07-01 13:35:38

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Repeating scroller?

How do you make a scroller that repeats itself?

Offline

 

#2 2008-07-01 13:38:55

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Repeating scroller?

http://scratch.mit.edu/forums/viewtopic.php?id=5919 Use that if it is a very simple background, otherwise, I usually have ScrollX go back to 0 after it reaches a certain point, kinda like this:

[blocks]<if><( <{ ScrollX  }>  <<> -300 )>[/blocks]
[blocks]<set{ ScrollX  }to( 0[/blocks]


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-07-01 13:54:45

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Repeating scroller?

Try out my tetris survivor - it uses a repeated scroller.


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#4 2008-07-01 14:11:45

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Repeating scroller?

Bluestribute wrote:

http://scratch.mit.edu/forums/viewtopic.php?id=5919 Use that if it is a very simple background, otherwise, I usually have ScrollX go back to 0 after it reaches a certain point, kinda like this:

[blocks]<if><( <{ ScrollX  }>  <<> -300 )>[/blocks]
[blocks]<set{ ScrollX  }to( 0[/blocks]

Where do i put that script?

Offline

 

#5 2008-07-01 14:13:58

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Repeating scroller?

keroro645 wrote:

Bluestribute wrote:

http://scratch.mit.edu/forums/viewtopic.php?id=5919 Use that if it is a very simple background, otherwise, I usually have ScrollX go back to 0 after it reaches a certain point, kinda like this:

[blocks]<if><( <{ ScrollX  }>  <<> -300 )>[/blocks]
[blocks]<set{ ScrollX  }to( 0[/blocks]

Where do i put that script?

Well, put tat in the

[blocks]<if><key[ Right Arrow  ]pressed?>[/blocks]

Script. Because when you press the right arrow, it goes to negatives. And than use grater than for the left arrow and, in this case, make it go to negative 300


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#6 2008-07-01 14:43:01

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Repeating scroller?

Ok thanks now i got what i was looking for.

Offline

 

Board footer