Hey! Ever seen the News, and the latest was scrolling at the bottom of the Screen? Well, today I am going to tell you how to make that!
First, make your text that will be Scrolling. You can always change it, or make more using the switch to costume [ Costume v] block.
Make it into a sprite and duplicate it.
In the first sprite, put:
when gf clicked go to (-405) (-155) forever repeat until <(x postiton)= [398]> move (2) steps end go to (-405) (-155) endIn the second sprite, put
when gf clicked go to (-0) (-155) forever repeat until <(x postiton)= [398]> move (2) steps end go to (-405) (-155) endThere you go!
Last edited by funelephant (2012-03-30 10:38:49)
Offline
Repeat until what?
Offline
funelephant wrote:
In the first sprite, put:
when gf clicked go to (-405) (-155) forever repeat until <(x position)=[398]> move (2) steps end go to (-405) (-155) endIn the second sprite, putwhen gf clicked go to (-0) (-155) forever repeat until <(x position)= [398]> move (2) steps end go to (-405) (-155) endThere you go!
Feel free to add a bar at the bottom!
Fixed your Scratch blocks
You might want "change x by (2)" instead of "move (2) steps", so the direction of the Sprite doesn't effect the script.
Last edited by MoreGamesNow (2012-03-29 22:11:05)
Offline
You can just create a very large sprite with text that continues off the screen.
Even though you can't see the text when you edit it, it's still there.
No need for two sprites at all.
Last edited by ProgramCAT (2012-03-29 22:54:16)
Offline
Nope. Scratch limits how far off-screen a sprite can go, based on its size. So a very huge sprite won't be able to go off-screen. Also, how would you handle the connection between the end and beginning in the wraparound:
Imagine • Program • Share • Imagine • Program • Share( • )Imagine • Program • Share
(bracketed bit)
One sprite wouldn't be able to end the word "share" and begin "Imagine". Unless you stamp, but then that's like having many sprites in the first place.
Offline
MoreGamesNow wrote:
funelephant wrote:
In the first sprite, put:
when gf clicked go to (-405) (-155) forever repeat until <(x position)=[398]> move (2) steps end go to (-405) (-155) endIn the second sprite, putwhen gf clicked go to (-0) (-155) forever repeat until <(x position)= [398]> move (2) steps end go to (-405) (-155) endThere you go!
Feel free to add a bar at the bottom!Fixed your Scratch blocks
![]()
You might want "change x by (2)" instead of "move (2) steps", so the direction of the Sprite doesn't effect the script.
Thanks! I don't know why it didn't show up. And I think move () steps and change x by () are basically the same thing.
Offline
ProgramCAT wrote:
You can just create a very large sprite with text that continues off the screen.
Even though you can't see the text when you edit it, it's still there.
No need for two sprites at all.
Then it doesn't fit all the text and might not repeat.
Offline
funelephant wrote:
MoreGamesNow wrote:
funelephant wrote:
In the first sprite, put:
when gf clicked go to (-405) (-155) forever repeat until <(x position)=[398]> move (2) steps end go to (-405) (-155) endIn the second sprite, putwhen gf clicked go to (-0) (-155) forever repeat until <(x position)= [398]> move (2) steps end go to (-405) (-155) endThere you go!
Feel free to add a bar at the bottom!Fixed your Scratch blocks
![]()
You might want "change x by (2)" instead of "move (2) steps", so the direction of the Sprite doesn't effect the script.Thanks! I don't know why it didn't show up. And I think move () steps and change x by () are basically the same thing.
well move () steps moves IN THE CURRENT DIRECTION, while change x by () will move RIGHT IF IT IS POSITIVE OR LEFT IT IT IS NEGATIVE.
Offline
funelephant wrote:
Hey! Ever seen the News, and the latest was scrolling at the bottom of the Screen? Well, today I am going to tell you how to make that!
First, make your text that will be Scrolling. You can always change it, or make more using theswitch to costume [ Costume v]block.
Make it into a sprite and duplicate it.
In the first sprite, put:when gf clicked go to x: (-405) y: (-155) forever repeat until <(x position)= [398]> change x by (-2) end go to x: (-405) y: (-155) endIn the second sprite, putwhen gf clicked go to x: (-0) y: (-155) forever repeat until <(x position)= [398]> change x by (-2) end go to x: (-405) y: (-155) endThere you go!
Feel free to add a bar at the bottom!
I fixed your script. You left out the "x:" and "y:" in your "go to" blocks.
Last edited by jontmy00 (2012-03-30 23:32:48)
Offline
to do this, you need text.
when gf clicked repeat (5) //or however many. You can omit this if you want to scroll it once only. go to x: (240) y: (-130) repeat until <(x position) = (-240)> //and if you want to scroll it up, add a y position. change x by (-2) //or whatever speed you want it. end wait (1) secs // or whatever delay. You can do no delay. endhope it works. (even though i tested it.)
Offline