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

#1 2012-06-02 22:46:39

Jman1111
Scratcher
Registered: 2012-02-20
Posts: 4

need help with naming things with letter sprites and numbers!

alright like I'm making a computer simulator and there is this thing that is been bugging me.

I want when you make a new folder  so that you could name it without using that answer thing in sensing. But I don't know how need help.

Offline

 

#2 2012-06-02 23:36:02

silvershine
Scratcher
Registered: 2010-11-21
Posts: 500+

Re: need help with naming things with letter sprites and numbers!

Jman1111 wrote:

alright like I'm making a computer simulator and there is this thing that is been bugging me.

I want when you make a new folder  so that you could name it without using that answer thing in sensing. But I don't know how need help.

Without the answer block, programming this will be very time consuming.  hmm

You're going to have to create an "if key (letter) pressed" script for every letter, and then add a costume with that letter typed in it. Then, if the user presses a key, the sprite with all the letter costumes will have to stamp itself.

Example:

when gf clicked
forever if <key [a v] pressed?>
switch to costume [a v]
stamp
change x by (5) //so that letters wont stamp over each other (depends on font size)
You will need to create a script like this for every letter, and that's JUST lower case. I would just stick with the answer block, but it's up to you.  smile

Offline

 

#3 2012-06-02 23:50:24

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: need help with naming things with letter sprites and numbers!

Firstly, why would you not want to use the answer block? Secondly, you could use lists with the answer block, or variables, if you used the answer block. Otherwise, the script by silvershine is probably your best choice.


Why are the secret organizations getting all the attention?  mad

Offline

 

Board footer