Discuss Scratch

DerAxeEffekt
Scratcher
100+ posts

A question

Would it be possible to make a script that can detect other sprites taking specific costumes?

(insert oversized quotation mark) If it is on the internet, it must be true. (insert another oversized quotation mark)
-Abraham Lincoln
LordAwesome123
Scratcher
98 posts

A question

You could make a variable, say “Sprite 1's costume”. Then have the sprite you want to detect have a script that updates the variable based on the “custome#” block constantly.

when green flag clicked
forever
set [Sprite 1 Costume v] to (costume #)
end

Last edited by LordAwesome123 (Sept. 24, 2013 12:55:17)

Splodgey
Scratcher
100+ posts

A question

LordAwesome123 wrote:

You could make a variable, say “Sprite 1's costume”. Then have the sprite you want to detect have a script that updates the variable based on the “custome#” block constantly.

when green flag clicked
forever
set [Sprite 1 Costume v] to (costume #)
end
You don't even need that
([costume v] of [Sprite1 v])

Ever wondered why there's no text box? Or why you can make sprites “say” stuff, but not display pure text? Click here! Now v1.3, includes links!
Text Box, Calculator, AlphaSorter & Case Sensor
Have a large-scale Minecraft project and you want to know how much raw materials you need to craft the “ingredients”? Click here!

Minecraft PvP Weapon Vs Armour Calculator/Simulator
LordAwesome123
Scratcher
98 posts

A question

Splodgey wrote:

LordAwesome123 wrote:

You could make a variable, say “Sprite 1's costume”. Then have the sprite you want to detect have a script that updates the variable based on the “custome#” block constantly.

when green flag clicked
forever
set [Sprite 1 Costume v] to (costume #)
end
You don't even need that
([costume v] of [Sprite1 v])
Wow, my mind must be that of 1.4
Splodgey
Scratcher
100+ posts

A question

LordAwesome123 wrote:

Splodgey wrote:

LordAwesome123 wrote:

You could make a variable, say “Sprite 1's costume”. Then have the sprite you want to detect have a script that updates the variable based on the “custome#” block constantly.

when green flag clicked
forever
set [Sprite 1 Costume v] to (costume #)
end
You don't even need that
([costume v] of [Sprite1 v])
Wow, my mind must be that of 1.4
We had that block in 1.4 too

Ever wondered why there's no text box? Or why you can make sprites “say” stuff, but not display pure text? Click here! Now v1.3, includes links!
Text Box, Calculator, AlphaSorter & Case Sensor
Have a large-scale Minecraft project and you want to know how much raw materials you need to craft the “ingredients”? Click here!

Minecraft PvP Weapon Vs Armour Calculator/Simulator

Powered by DjangoBB