Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Costume if statements
- chief_puppy
-
New Scratcher
2 posts
Costume if statements
Does anyone here know how to do costume IF statements. I cant figure out how.
- WindOctahedron
-
Scratcher
1000+ posts
Costume if statements
What do you mean by “costume if statement”?
Do you mean "custom if statement"?
Do you mean "custom if statement"?
Last edited by WindOctahedron (July 26, 2020 19:54:23)
- chief_puppy
-
New Scratcher
2 posts
Costume if statements
No like if a sprite changes costume, can i make a if statement off that or no
- Super_Scratch_Bros20
-
Scratcher
1000+ posts
Costume if statements
No like if a sprite changes costume, can i make a if statement off that or no
This belongs in the Help With Scripts forum. Requesting a moderator to move it there…
when green flag clicked
set [costume v] to (costume #)
when green flag clicked
forever
if <not <(costume) = (costume #)>> then
...
set [costume v] to (costume #)
end
end
Last edited by Super_Scratch_Bros20 (July 26, 2020 21:21:50)
- LankyBox01
-
Scratcher
1000+ posts
Costume if statements
Let me 3.0-fy that for youNo like if a sprite changes costume, can i make a if statement off that or no
This belongs in the Help With Scripts forum. Requesting a moderator to move it there…when green flag clicked
set [costume v] to (costume #)when green flag clicked
forever
if <not <(costume) = (costume #)>> then
...
set [costume v] to (costume #)
end
end

Last edited by LankyBox01 (July 26, 2020 22:32:27)
- Velocicoder1
-
Scratcher
5 posts
Costume if statements
If I want a sprite costume of the two digit number 8 and 8 (88 mph) to trigger an animation in another sprite, how can I do this?
- Byron_Inc
-
Scratcher
1000+ posts
Costume if statements
If I want a sprite costume of the two digit number 8 and 8 (88 mph) to trigger an animation in another sprite, how can I do this?Put this script in the Sprite that you make that animation:
when gf clickedAnd please make your own topic next time.
forever
if <<([costume number v] of [ones digit v]) = (8)> and <([costume number v] of [tens digit v]) = (8)>> then
... :: grey stack // triggered!
end
end

Last edited by Byron_Inc (July 28, 2020 06:25:57)
- MorleyButton
-
Scratcher
16 posts
Costume if statements
when green flag clicked
forever
if <[costume] = [(your number here)]> then
think [this is costume (your mum here)] for (2) secs
end
end
- DevsOfMakeCatBianca
-
Scratcher
7 posts
Costume if statements
when green flag clicked
forever
if <(costume #) = [whateveryouwant]> then
say [Do whatever you want] for (2) secs
end
end
- 09878901234321
-
Scratcher
500+ posts
Costume if statements
This topic is quite old. Please avoid Necroposting. If you need help, make your own topic. Thanks!
- Discussion Forums
- » Help with Scripts
-
» Costume if statements







