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

#1 2011-05-23 01:11:20

wuzel
New Scratcher
Registered: 2011-05-22
Posts: 7

how to display text? (besides 'say' or 'think' blocks

I know I can use the say and think blocks to display some text, but what do I do if I want to display something like a score?

Most of what I seen so far seems to rely on making a sprite that is an image of the text, which seems rather narrows down the possibilites. Is there any other way?  Is there a specialist block that could be imported to do this?

Thanks

Offline

 

#2 2011-05-23 02:23:17

LordSydney
Scratcher
Registered: 2011-04-20
Posts: 100+

Re: how to display text? (besides 'say' or 'think' blocks

Have a variable "score" and make every correct answer change "score" by however.


Need help with BBCode?
http://i.imgur.com/IfWrL.gifAlso check this out!http://i.imgur.com/YgF2v.gif

Offline

 

#3 2011-05-23 03:50:30

wuzel
New Scratcher
Registered: 2011-05-22
Posts: 7

Re: how to display text? (besides 'say' or 'think' blocks

Supposing the score is 327. I can have that value in a variable, but how would I display that value on the screen?  There doesn't seem to be any way of displaying text on a screen besides say and think speech bubbles.

Offline

 

#4 2011-05-23 03:55:02

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: how to display text? (besides 'say' or 'think' blocks

Well, you can use a complicated script that has costumes of all the letters and numbers, and stamp them.

Offline

 

#5 2011-05-23 08:09:47

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

Re: how to display text? (besides 'say' or 'think' blocks

Or you could use a pen and draw the letters and /or numbers like I did on my text render project!


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

Offline

 

#6 2011-05-23 09:11:18

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

Re: how to display text? (besides 'say' or 'think' blocks

The easiest way is with a variable watcher. Just make sure the checkbox next to the variable you want to display is checked, and it will always display the appropriate score.

Offline

 

#7 2011-05-23 11:15:51

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: how to display text? (besides 'say' or 'think' blocks

As coolstuff suggested:

When you create a veriable, make sure the box is ticked like so
http://dl.dropbox.com/u/11532575/forums/watchers/creeatz.png

Then, it'll appear on the stage like so, and you can right click it to change its appearance:
http://dl.dropbox.com/u/11532575/forums/watchers/showw.png

Offline

 

#8 2011-05-23 16:14:52

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: how to display text? (besides 'say' or 'think' blocks

Yup, a variable watcher is definitely the easiest way to display numbers. You can make a system of stamping numbers, but that's generally a pain and can slow the project down, depending on how you do it.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#9 2011-05-23 17:42:54

Flait7
Scratcher
Registered: 2008-04-14
Posts: 100+

Re: how to display text? (besides 'say' or 'think' blocks

Variables display text as well as numbers, just set the variable to a word you want it to be. Or even set the variable to the answer to a question

Last edited by Flait7 (2011-05-23 17:43:08)


http://scratch.mit.edu/static/projects/Flait7/2248016_sm.pnghttp://scratch.mit.edu/static/projects/Flait7/1827934_sm.png

Offline

 

#10 2011-05-23 21:23:10

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: how to display text? (besides 'say' or 'think' blocks

TBH, variable displays are rather ugly  tongue  Try using stamp displays... download my project Kriza and look at the text sprite for an example  smile

Last edited by Jonathanpb (2011-05-23 21:23:36)


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#11 2011-05-26 03:57:22

wuzel
New Scratcher
Registered: 2011-05-22
Posts: 7

Re: how to display text? (besides 'say' or 'think' blocks

Thankyou everyone for the suggestions. I've got plenty of ideas to experiment with now.

Offline

 

Board footer