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

#1 2009-09-12 01:59:53

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

New Type of Variable

I'm not entirely sure why this is a good idea, and what it could be used for, but I think it's good.

What if you could make a variable, and every single sprite would have that variable, but each sprite could have a different value.

If anyone could tell what exactly this could be used for, I'd be grateful. Also, I thought up how this would happen:

Code:

Reporter Block: [variable name] of [sprite name]

So you could have something like this:

Code:

If touching sprite 3 and [variable name] of sprite 3 = 5
move 5 steps.

Thanks,
      WeirdF

Last edited by WeirdF (2009-09-12 02:00:23)


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

#2 2009-09-12 12:11:31

weswesrock
Scratcher
Registered: 2009-06-25
Posts: 500+

Re: New Type of Variable

You can just make a variable exclusive to the sprite on every sprite you have.

Offline

 

#3 2009-09-12 13:54:15

illusionist
Retired Community Moderator
Registered: 2008-07-02
Posts: 1000+

Re: New Type of Variable

You can already do this.


http://i.imgur.com/8LX1NrV.png

Offline

 

Board footer