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

#1 2008-03-26 13:01:32

scratchpatch
Scratcher
Registered: 2008-03-21
Posts: 1

Arrays and costumes

It would be great if scratch could implement arrays. Also it would be useful if you could find out using an if statement what costume a sprite was currently displaying.

scratchpatch

Offline

 

#2 2008-03-26 14:11:44

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Arrays and costumes

You can get the Costume # of a sprite now.  It's available in the Sensing area, the blocks that says "xxxxx" of "yyyyy" where xxxxx and yyyyy are both drop-down lists.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2008-03-29 19:11:53

BenIGreen
Scratcher
Registered: 2008-01-26
Posts: 7

Re: Arrays and costumes

But it would be nicer if you could "set costume to #"

Offline

 

#4 2008-03-29 19:18:02

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Arrays and costumes

BenIGreen wrote:

But it would be nicer if you could "set costume to #"

You can.  Define a variable, then place the variable in the Switch To Costume block.  The drop-down area of the block also accepts variables; pretty cool!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2008-04-25 16:04:39

likegames
Scratcher
Registered: 2008-03-24
Posts: 100+

Re: Arrays and costumes

arrays? just use multiple variables!


There are 10 types of people in this world: Those who understand trinary, those who don't, and those who think this is the same old signature.
Three lines! (and base three!)

Offline

 

Board footer