Discuss Scratch

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?
Cutie_Pooge
Scratcher
500+ posts

Previous costume?

switch costume to ((costume [number v] :: looks) - (1))
icecreamhoverboard
Scratcher
30 posts

Previous costume?

Cutie_Pooge wrote:

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.

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?

mrkeith101 wrote:

switch costume to [previous costume v]

Yes, I believe there is actually a “previous costume” in the drop down menu too!
I think that feature was removed in 3.0
superclass43
Scratcher
500+ posts

Previous costume?

To create your own block use this code:

define Previous costume
switch costume to ((costume #) - (1))
or if you want to make a fading in and out effect:

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?

mrkeith101 wrote:

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

cs2925723
Scratcher
100+ posts

Previous costume?

That does work.

Powered by DjangoBB