Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » A question
- 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
You don't even need that 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
([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
Wow, my mind must be that of 1.4You don't even need that 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([costume v] of [Sprite1 v])
- Splodgey
- Scratcher
100+ posts
A question
We had that block in 1.4 tooWow, my mind must be that of 1.4You don't even need that 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([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
- Discussion Forums
- » Help with Scripts
- » A question