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

#1 2011-12-26 19:00:24

Kowalskz
New Scratcher
Registered: 2010-11-20
Posts: 20

Manipulating costumes

Hi,

I am trying to manipulate costumes of a sprite, but it seems the options are limited.

1. Is it possible to change Costume # ?

2. Is it possible to set a particular costume based on the contents of a variable?
For example, if i=26, then change the sprite's costume to costume26, or something like that.

Thanks.

Offline

 

#2 2011-12-26 19:03:09

mcpNOVA
Scratcher
Registered: 2011-12-05
Posts: 100+

Re: Manipulating costumes

Yes and yes.


http://i43.tinypic.com/n5fqcz.jpg

Offline

 

#3 2011-12-26 19:42:28

forest
Scratcher
Registered: 2007-07-29
Posts: 100+

Re: Manipulating costumes

yes and yes.

Offline

 

#4 2011-12-26 21:01:05

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Manipulating costumes

The "switch to costume[]" block will accept variable values.  For instance, if the variable value is "5", it will switch to costume 5 (the fifth costume).  You may be able to choose costumes based on their names too... but I haven't tried that, I've always used their number.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer