Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Help for if backdrop changed
- superk100
-
Scratcher
50 posts
Help for if backdrop changed
Hello! I'm trying to find some people to resolve my issue. I am trying to create an animation when the backdrop has changed, it will change and the character will show up again, but it seems that there is no block for this. Can somebody help me, I would be very grateful if you did.
This is the animation for reference: https://scratch.mit.edu/projects/724576039/editor/
This is the animation for reference: https://scratch.mit.edu/projects/724576039/editor/
Last edited by superk100 (Aug. 24, 2022 15:38:30)
- legendary34678
-
Scratcher
1000+ posts
Help for if backdrop changed
If you want to detect if the backdrop has changed, you can use a variable like this:
I'm not sure if this fits what you want. Hopefully this helps you, though!
switch backdrop to [backdrop v] //When you change the backdrop
set [backdrop changed? v] to [yes]
when green flag clicked
set [backdrop changed? v] to [no]
wait until <(backdrop changed?) = [yes]
... //Put whatever should happen when the backdrop changes here
I'm not sure if this fits what you want. Hopefully this helps you, though!
- superk100
-
Scratcher
50 posts
Help for if backdrop changed
I meant if the backdrop has changed, it does something.
- superk100
-
Scratcher
50 posts
Help for if backdrop changed
Alright, thank you though!
If you want to detect if the backdrop has changed, you can use a variable like this:switch backdrop to [backdrop v] //When you change the backdrop
set [backdrop changed? v] to [yes]
when green flag clicked
set [backdrop changed? v] to [no]
wait until <(backdrop changed?) = [yes]
... //Put whatever should happen when the backdrop changes here
I'm not sure if this fits what you want. Hopefully this helps you, though!
- TR_Borg
-
Scratcher
82 posts
Help for if backdrop changed
Hi superk100,
You could use this event hat block on the sprite that you want to animate.
You could use this event hat block on the sprite that you want to animate.
when backdrop switches to [ backdrop 2 v]
- legendary34678
-
Scratcher
1000+ posts
Help for if backdrop changed
Oh, I forgot that block existed. Yeah, just use TR_Borg's suggestion!
- Discussion Forums
- » Help with Scripts
-
» Help for if backdrop changed