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

#1 2012-03-29 21:42:03

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

How to make Scrolling Text!

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)
end
In 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)
end
There you go!

Feel free to add a bar at the bottom!

Last edited by funelephant (2012-03-30 10:38:49)


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#2 2012-03-29 22:04:17

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: How to make Scrolling Text!

Repeat until what?  hmm


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#3 2012-03-29 22:09:07

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

Re: How to make Scrolling Text!

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)
end
In the second sprite, put
when gf clicked
go to (-0) (-155)
forever
repeat until <(x position)= [398]>
move (2) steps
end
go to (-405) (-155)
end
There you go!

Feel free to add a bar at the bottom!

Fixed your Scratch blocks  smile

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)


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

Offline

 

#4 2012-03-29 22:53:54

ProgramCAT
Scratcher
Registered: 2011-12-13
Posts: 500+

Re: How to make Scrolling Text!

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)


Programming is an art...
Goodbye, Scratch. I am leaving because of the exams coming up at our school, though I'll check the forums once or twice a week.

Offline

 

#5 2012-03-30 05:55:24

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: How to make Scrolling Text!

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.  wink


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#6 2012-03-30 07:53:02

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: How to make Scrolling Text!

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)
end
In the second sprite, put
when gf clicked
go to (-0) (-155)
forever
repeat until <(x position)= [398]>
move (2) steps
end
go to (-405) (-155)
end
There you go!

Feel free to add a bar at the bottom!

Fixed your Scratch blocks  smile

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.


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#7 2012-03-30 07:54:17

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: How to make Scrolling Text!

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.


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#8 2012-03-30 15:21:44

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: How to make Scrolling Text!

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)
end
In the second sprite, put
when gf clicked
go to (-0) (-155)
forever
repeat until <(x position)= [398]>
move (2) steps
end
go to (-405) (-155)
end
There you go!

Feel free to add a bar at the bottom!

Fixed your Scratch blocks  smile

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.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#9 2012-03-30 23:30:45

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: How to make Scrolling Text!

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 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 x: (-405) y: (-155)
forever
repeat until <(x position)= [398]>
change x by (-2)
end
go to x: (-405) y: (-155)
end
In the second sprite, put
when 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)
end
There 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)


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#10 2012-04-01 15:03:24

ty44
Scratcher
Registered: 2011-02-05
Posts: 57

Re: How to make Scrolling Text!

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.
end
hope it works. (even though i tested it.)
--
Cats scratch-ponies don't. Go Neigh!


http://t3ak.roblox.com/07ffa69f8ced34c7220abf1a8008c1d1 Mario Kart OBSESSION!

Offline

 

Board footer