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

#1 2011-12-09 20:01:01

TeamDeviseHelp
New Scratcher
Registered: 2011-12-01
Posts: 44

Variables Question

Is there a way to make variables appear differently? Like, instead of the orange and grey box, just a number or letter?

Offline

 

#2 2011-12-09 21:11:48

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

Re: Variables Question

Sadly not, instead you'll have to program your own displays  hmm


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

 

#3 2011-12-09 22:28:05

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

Re: Variables Question

... but, you can program your own displays fairly easily! Take a look at this project.  smile

Offline

 

#4 2011-12-10 01:20:59

PaperMario123
Scratcher
Registered: 2011-11-25
Posts: 500+

Re: Variables Question

Yep, what they said. However, you CAN program your own. If you create a sprite for the first digit, one for the second, one for the third, and so on, the numbers'll work. Letters are a little harder.


http://i.picasion.com/pic46/52268c4a041cced4c8ed97cc7468f869.gif

Offline

 

#5 2011-12-10 04:47:59

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Variables Question

Nope, unfortunately not. You CAN however create lots of sprites with numbered costumes, like in my project Keep it up!
You can download it to see how the score sprite work!  big_smile

Last edited by RedRocker227 (2011-12-10 04:48:25)


Why

Offline

 

#6 2011-12-10 19:34:02

TeamDevise
New Scratcher
Registered: 2011-12-01
Posts: 39

Re: Variables Question

RedRocker227 wrote:

Nope, unfortunately not. You CAN however create lots of sprites with numbered costumes, like in my project Keep it up!
You can download it to see how the score sprite work!  big_smile

Can you do it with letters?

Offline

 

#7 2011-12-10 19:57:57

aqualung
Scratcher
Registered: 2011-07-03
Posts: 100+

Re: Variables Question

TeamDevise wrote:

RedRocker227 wrote:

Nope, unfortunately not. You CAN however create lots of sprites with numbered costumes, like in my project Keep it up!
You can download it to see how the score sprite work!  big_smile

Can you do it with letters?

as long as you modify the script accordingly, of course


http://i40.tinypic.com/ajuy40.jpg

Offline

 

#8 2011-12-10 20:41:15

TeamDevise
New Scratcher
Registered: 2011-12-01
Posts: 39

Re: Variables Question

aqualung wrote:

TeamDevise wrote:

RedRocker227 wrote:

Nope, unfortunately not. You CAN however create lots of sprites with numbered costumes, like in my project Keep it up!
You can download it to see how the score sprite work!  big_smile

Can you do it with letters?

as long as you modify the script accordingly, of course

But I don't think it would be able to save...

Offline

 

#9 2011-12-10 20:47:50

aqualung
Scratcher
Registered: 2011-07-03
Posts: 100+

Re: Variables Question

TeamDevise wrote:

aqualung wrote:

TeamDevise wrote:


Can you do it with letters?

as long as you modify the script accordingly, of course

But I don't think it would be able to save...

save what, the word?

ehh the way im thinking of doing it would require several variables
but everything i do requires several variables

do you think you could elaborate a bit more on what youre trying to do so i can help to my full ability


http://i40.tinypic.com/ajuy40.jpg

Offline

 

#10 2011-12-10 21:05:50

TeamDevise
New Scratcher
Registered: 2011-12-01
Posts: 39

Re: Variables Question

aqualung wrote:

TeamDevise wrote:

aqualung wrote:


as long as you modify the script accordingly, of course

But I don't think it would be able to save...

save what, the word?

ehh the way im thinking of doing it would require several variables
but everything i do requires several variables

do you think you could elaborate a bit more on what youre trying to do so i can help to my full ability

I'm trying to make an astheatically pleasing and effective word processor. I want it to be able to save and be editable after reopening it, but it's not really working... I've started working on it with variables and typing answers in, but I'm not sure how I'm going to get the editing to work...

Offline

 

#11 2011-12-10 21:12:54

aqualung
Scratcher
Registered: 2011-07-03
Posts: 100+

Re: Variables Question

TeamDevise wrote:

I'm trying to make an astheatically pleasing and effective word processor. I want it to be able to save and be editable after reopening it, but it's not really working... I've started working on it with variables and typing answers in, but I'm not sure how I'm going to get the editing to work...

ah i see

i believe i saw one really nice word processor in scratch ages ago that saved pages by stamping a little dot of a certain color for every letter in the top corner so that it formed a colorful line that was really your writing encrypted. then when it was time to change a page a new line would start or something. when you'd go back to an old page, a sensory sprite would read the color of the dots in their order to reassemble your writing. it was pretty cool- i didn't really explain it well so if i find a link i'll post it

however, i'm still really not understanding what you're trying to do ;_;
in what way are you working with variables and typing in answers, and what are these answers being typed into?

i'm kind of forming the idea that you're using an ask script to acquire the desired typing, then setting the variable to the answer for safekeeping. is that right?

i'm sorry i don't really catch on quickly. it might be useful for me to visually see the scripts?


http://i40.tinypic.com/ajuy40.jpg

Offline

 

Board footer