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
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'
Offline
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
Thanks for the reply guy's.
Well...it looks like I've got to start on those sprite fonts then
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
Ralin wrote:
Thanks for the reply guy's.
Well...it looks like I've got to start on those sprite fonts then
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
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
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
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
You might have better luck posting the project in the Show and Tell forum
Offline
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.
Offline
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.
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