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

#1 2010-05-21 19:25:17

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

ScrollX

Okay, I know how to do scrollx but When the terrain is all gone, instead of going back to the start it just stops and there is a white background. Please help me! 




  smile     neutral    sad    big_smile    yikes    wink     hmm    tongue    lol   mad   roll   cool


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

#2 2010-05-21 19:46:29

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: ScrollX

qwertypower wrote:

Okay, I know how to do scrollx but When the terrain is all gone, instead of going back to the start it just stops and there is a white background. Please help me! 




  smile     neutral    sad    big_smile    yikes    wink     hmm    tongue    lol   mad   roll   cool

You just have to limit how far it can go. Maybe Archmage's scrolling example can help you:
http://scratch.mit.edu/projects/archmage/318823
It's a great example of Scrolling.

Offline

 

#3 2010-05-21 20:35:35

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

Re: ScrollX

Thanks, but I'm thinking about automatic endless scrolling, that starts when the flag is pressed.


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

#4 2010-05-21 20:37:28

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: ScrollX

qwertypower wrote:

Thanks, but I'm thinking about automatic endless scrolling, that starts when the flag is pressed.

Ooh, endless scrolling, eh? I'm sure if you fiddled around with Archmage's script - specifically, removing the limiter - you can do so.

Offline

 

#5 2010-05-21 20:41:29

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: ScrollX

qwertypower wrote:

Thanks, but I'm thinking about automatic endless scrolling, that starts when the flag is pressed.

LOOK AT MY PROJECT IT HAS INFINITE SCROLLING. It's actually easier than you'd think. Here's a link: (link to project 'n stuff)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#6 2010-05-22 09:48:09

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

Re: ScrollX

Thanks, but not infinite. Only scrolls when you use the arrow keys.
I do the same thing as you did. Different terrain that starts with 0 and goes up by 1 but It still doesen't work!


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

#7 2010-05-22 10:00:01

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: ScrollX

qwertypower wrote:

Thanks, but not infinite. Only scrolls when you use the arrow keys.
I do the same thing as you did. Different terrain that starts with 0 and goes up by 1 but It still doesen't work!

It would be infinite if you take away the arrow key commands and add a

[blocks]<forever>
<change{ ScrollX   }by( 10
<end>[/blocks]

That should make it infinite scrolling.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#8 2010-05-22 10:32:47

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

Re: ScrollX

How bout I just show you the project? http://scratch.mit.edu/projects/qwertypower/1067616 It's unfinished so could you just download it and tell me what the probelm is in the forums?


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

Board footer