Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Previous costume?
- icecreamhoverboard
-
Scratcher
30 posts
Previous costume?
Hi,
I was wondering how to make something go to a previous costume when receiving a message, but there is no previous costume block. Can anyone help?
I was wondering how to make something go to a previous costume when receiving a message, but there is no previous costume block. Can anyone help?
- Cutie_Pooge
-
Scratcher
500+ posts
Previous costume?
switch costume to ((costume [number v] :: looks) - (1))
- icecreamhoverboard
-
Scratcher
30 posts
Previous costume?
switch costume to ((costume [number v] :: looks) - (1))[/quote]
Thank you
- Oumuamua
-
Scratcher
1000+ posts
Previous costume?
You take into account that previous costume of first costume is the last costume.
Greets.
Greets.
Last edited by Oumuamua (July 27, 2020 14:21:34)
- mrkeith101
-
Scratcher
500+ posts
Previous costume?
switch costume to [previous costume v]
Yes, I believe there is actually a “previous costume” in the drop down menu too!
- Cutie_Pooge
-
Scratcher
500+ posts
Previous costume?
I think that feature was removed in 3.0switch costume to [previous costume v]
Yes, I believe there is actually a “previous costume” in the drop down menu too!
- superclass43
-
Scratcher
500+ posts
Previous costume?
To create your own block use this code:
define Previous costumeor if you want to make a fading in and out effect:
switch costume to ((costume #) - (1))
define Fade to previous costume
set [Ghost v] effect to (0)
repeat (100)
change [Ghost v] effect by (1)
end
switch costume to ((costume #) - (1))
repeat (100)
change [Ghost v] effect by (-1)
end
Last edited by superclass43 (July 28, 2020 09:09:20)
- Oumuamua
-
Scratcher
1000+ posts
Previous costume?
switch costume to [previous costume v]
Yes, I believe there is actually a “previous costume” in the drop down menu too!
Nope, but you can do

- Discussion Forums
- » Help with Scripts
-
» Previous costume?