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

#1 2010-07-16 09:26:52

Ralin
Scratcher
Registered: 2010-07-16
Posts: 32

Hi everyone! Question on labelling and text.

Hi there, just started off with scratch.

Is there any way that I can set the x,y position of a variable's display and its display type (large readout)?

For example if I want to display var: <Score> at position <180, -160> in <large readout>. How can I initial this on Green Flag click?

Can text only be managed as sprites? Would I have to create a sprite with 62 costumes for characters A-Z, a-z,  0-9? Then create a way to display them on screen?

Offline

 

#2 2010-07-16 09:33:46

markyiscool
Scratcher
Registered: 2008-04-09
Posts: 100+

Re: Hi everyone! Question on labelling and text.

You can't use a variable readout as a sprite. However, you can move it around on the screen, but this can't be connected to a when Green Flag clicked.

Regarding your final question, you would have to create another sprite in order to get movement off these 'variables'


Wanted the Netherlands to win or want to re-experience Spain's victory? Do it withthis!
Projects not being loved, here's an idea!

Offline

 

#3 2010-07-16 09:37:59

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

Re: Hi everyone! Question on labelling and text.

You can set the variable to there manually, but you won't be able to change it mid-game; the only property you can change with scripts is whether or not the variable is showing.

Text can only be managed as sprites, unfortunately. You would have to create a costume for every possible character, then display that on the screen, unfortunately, though I believe they are attempting to change this in the next version of Scratch, 2.0. However, you can make text display as a variable.

On a side note, welcome to Scratch!

Offline

 

#4 2010-07-16 09:45:10

Ralin
Scratcher
Registered: 2010-07-16
Posts: 32

Re: Hi everyone! Question on labelling and text.

Thanks for the reply guy's.

Well...it looks like I've got to start on those sprite fonts then  sad

On a side note perhaps a thread could be made for people to contribute their own Sprite Font Libraries. Anyway, I've got to get started on the fonts.

Offline

 

#5 2010-07-16 09:50:24

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

Re: Hi everyone! Question on labelling and text.

Ralin wrote:

Thanks for the reply guy's.

Well...it looks like I've got to start on those sprite fonts then  sad

On a side note perhaps a thread could be made for people to contribute their own Sprite Font Libraries. Anyway, I've got to get started on the fonts.

That's a great idea!

I'm curious, however, why you can't just display your text using variables.

Offline

 

#6 2010-07-16 10:06:00

Ralin
Scratcher
Registered: 2010-07-16
Posts: 32

Re: Hi everyone! Question on labelling and text.

I'm interested in creating a space trading game. This would involve lots of text manipulation. Trading inventories buy/sell info. will change. The prices of commodities will need to be regularly updated. The variable display is clumsy and  space wasting. At least with the sprite fonts I can change size and spacing of characters (not forgetting orientation, colouring, etc...) and of course labelling all the stuff for dynamic targets: ships, space stations, pirates, etc However, it will be a steep learning curve for me. Lol... I suppose you need the mental sweating to learn anything.

Offline

 

#7 2010-07-16 10:08:34

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

Re: Hi everyone! Question on labelling and text.

Ralin wrote:

I'm interested in creating a space trading game. This would involve lots of text manipulation. Trading inventories buy/sell info. will change. The prices of commodities will need to be regularly updated. The variable display is clumsy and  space wasting. At least with the sprite fonts I can change size and spacing of characters (not forgetting orientation, colouring, etc...) and of course labelling all the stuff for dynamic targets: ships, space stations, pirates, etc However, it will be a steep learning curve for me. Lol... I suppose you need the mental sweating to learn anything.

I see what you mean - at the moment, text is insanely difficult to write - not something I would have expected from a program that's meant to be quite simple to learn.

Offline

 

#8 2010-07-21 23:34:39

Ralin
Scratcher
Registered: 2010-07-16
Posts: 32

Re: Hi everyone! Question on labelling and text.

Managed to create my first project.

SPRITE FONTS DEMO
http://scratch.mit.edu/projects/Ralin/1205597

Decided to call my first sprite font: scratchpaws monospace dark
it's mainly suited to light backgrounds. Takes ages to create sprite fonts. I see why there are not too many people doing it. Anyways, will be doing more...

Offline

 

#9 2010-07-21 23:55:12

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Hi everyone! Question on labelling and text.

You might have better luck posting the project in the Show and Tell forum


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#10 2010-07-22 02:30:54

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Hi everyone! Question on labelling and text.

It's a shame Scratch doesn't have a proper print feature - it really should... maybe we should go and bump some threads in the Suggestions forum.  smile


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#11 2010-07-22 09:15:34

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

Re: Hi everyone! Question on labelling and text.

Chrischb wrote:

It's a shame Scratch doesn't have a proper print feature - it really should... maybe we should go and bump some threads in the Suggestions forum.  smile

This was suggested - I made a bit of a mockup for something like this. It was pretty advanced, and maybe a bit confusing, but it would be very flexible and just perfect for things like this.

Here was my mockup.

Offline

 

Board footer