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

#1 2011-01-09 16:38:41

pika100chu
Scratcher
Registered: 2009-07-26
Posts: 500+

How do you add...

I didn't see a topic on this, but how do you add things such as %s and %n?

Offline

 

#2 2011-01-10 07:43:01

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: How do you add...

Really? You haven't seen any topics on it? Hmm...

Go to Scratch-Blocks, CommandBlockMorph, private, and choose the lowest choice, I think that's where you can add and delete them.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#3 2011-01-18 11:37:32

hello12345678910
Scratcher
Registered: 2009-07-11
Posts: 100+

Re: How do you add...

henley wrote:

Really? You haven't seen any topics on it? Hmm...

Go to Scratch-Blocks, CommandBlockMorph, private, and choose the lowest choice, I think that's where you can add and delete them.

Yes you can. its under uncoleredArgMorphFor, to be exact. just copy this strip:

$Letter = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #nameofselector;choice: 'Defaultchoice'].

Then go to ScratchObjects>ScriptableScratchMorph>(instance)>Other> and add:

nameofselector
    ^ #('1st item' '2nd item' 'Ect.' )

when you make your instance, do somthing along the lines of

t1= '1st item' ifTrue: [COMMAND]
t1= '2nd item' ifTrue: [COMMAND]

Last edited by hello12345678910 (2011-01-18 11:42:40)


http://tinyurl.com/8yt32o9 http://tinyurl.com/6tgwp5r || Fish = F+I+S+H = 6+9+19+8 = 42<<The answer to Life, the Universe and Everything

Offline

 

Board footer