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

#1 2009-10-13 23:12:39

Rivendain
Scratcher
Registered: 2009-04-08
Posts: 9

Picking Variables

How would you get the player to be able to choose which varable they want to modify without making a slider, creating another set of variables, or making a button for every single one? I am trying to make a trading game. I have different-colored arrows on the background and when you click a sprite stops on the one you clicked on. But when I tried to use the block
[blocks]<color[ black ]is over[ color of the arrow [/blocks]
it didn't work.
Is it at all clear what I am trying to ask?

Offline

 

#2 2009-10-13 23:38:16

martianshark
Scratcher
Registered: 2008-03-24
Posts: 1000+

Re: Picking Variables

What is the black thing that's over the arrow? If it's the mouse, it didn't work because the mouse doesn't interact with this. Use <touching[ mouse pointer> instead.


http://img.geocaching.com/stats/img.aspx?txt=martianshark&amp;uid=e6cdc2c8-2476-4abd-9994-27f857396579&amp;bg=1

Offline

 

#3 2009-10-14 00:53:23

Rivendain
Scratcher
Registered: 2009-04-08
Posts: 9

Re: Picking Variables

The sprite is black. It appears when you click.

Offline

 

#4 2009-10-14 01:56:56

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

Re: Picking Variables

Try using a <touching [Sprite]> block.


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

 

#5 2009-10-16 12:58:57

Rivendain
Scratcher
Registered: 2009-04-08
Posts: 9

Re: Picking Variables

I can't. The colored arrows are in the backgound. I can't put scripts on them.

Offline

 

Board footer