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

#1 2007-05-15 01:52:13

stratolab
Scratcher
Registered: 2007-04-17
Posts: 11

Suggestion: Access to current costume

A lot of times the current costume is used to define a characters state, e.g. healthy, injured, dead.  It would be handy to test which costume is showing so that you can behave differently if you are dead vs. healthy.  Could you add an item in sensing such as <costume is ___>

-Winston

Offline

 

#2 2007-05-16 08:50:57

johnm
Scratcher
Registered: 2007-03-08
Posts: 100+

Re: Suggestion: Access to current costume

Thanks for the suggestion.

For now, you can keep the state in a variable, say "health". If 1 means healthy, 2 means injured, etc. then you can use "switch to costume <health>" to set the costume from the variable.

-- John

Offline

 

#3 2008-08-20 16:45:02

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

Re: Suggestion: Access to current costume

you can with  <costume #>


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