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

#1 2012-09-10 19:11:28

seifip
New Scratcher
Registered: 2012-09-10
Posts: 1

BYOB - Set a variable in a clone

How can I set a variable in a cloned sprite?

Let's say I have sprite A, and I make a clone B. I need to set a variable in the clone B, from the stage script cloning A.

Anyway to do this?

Offline

 

#2 2012-11-01 17:57:10

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: BYOB - Set a variable in a clone

I belive you would:

set ((var) of [spritename]) to [val]


I'm back.
Maybe.

Offline

 

#3 2012-11-03 13:41:15

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB - Set a variable in a clone

set (<the (var) block> of (clone)) to (value)
actually

(btw use the blue of block not the green one)

Last edited by joefarebrother (2012-11-03 13:41:33)


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

Board footer