Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Please help - how to make the back ground flash behind sprite
- weaverssean
-
10 posts
Please help - how to make the back ground flash behind sprite
Hi
I'm trying to make the background flash between two back grounds while a sprite provides information in front of the flashing back ground. Up to now I have just alternated the back grounds between when the sprite say something but the code looks really confusing and messy. Does anyone have any ideas how I could do this? I tried to setup a broadcast to a repeat the back ground change 10 times in a loop and then continue with the main part of the program but that doesn't seem to be working.
I hope this makes sense.
If anyone who would like to play the game so they can see what I mean that would be great.
http://scratch.mit.edu/projects/23946283/
Thanks in advance
Sean
I'm trying to make the background flash between two back grounds while a sprite provides information in front of the flashing back ground. Up to now I have just alternated the back grounds between when the sprite say something but the code looks really confusing and messy. Does anyone have any ideas how I could do this? I tried to setup a broadcast to a repeat the back ground change 10 times in a loop and then continue with the main part of the program but that doesn't seem to be working.
I hope this makes sense.
If anyone who would like to play the game so they can see what I mean that would be great.
http://scratch.mit.edu/projects/23946283/
Thanks in advance
Sean
- AgentCNF
-
100+ posts
Please help - how to make the back ground flash behind sprite
Would this do it? Or am I not understanding?
forever
switch backdrop to [next backdrop v]
end
- weaverssean
-
10 posts
Please help - how to make the back ground flash behind sprite
Part of my problem is that for the evaporation question I need the backdrops to alternate between the normal backdrop and the evaporation backdrop. On the condensation question I need the backdrops to alternate between the normal backdrop and the condensation backdrop. Maybe I didn't create the game that well but the game evolved into what it is and it got more complicated than what I originally thought it would. At first I just wanted something to teach my son and then I saw all the cool things I could teach him and well……here I am.
Anyway, because I need specific backdrops to alternate depending on the “water cycle question” question I don't think your suggestion will work. Perhaps I'm wrong?
Thanks for your reply
Sean
Anyway, because I need specific backdrops to alternate depending on the “water cycle question” question I don't think your suggestion will work. Perhaps I'm wrong?
Thanks for your reply
Sean
- djdolphin
-
1000+ posts
Please help - how to make the back ground flash behind sprite
Try something like this:
when I receive [evaporation flash v]
repeat (10)
switch backdrop to [Evaporation v]
wait (0.2) secs
switch backdrop to [Normal day v]
wait (0.2) secs
end
Last edited by djdolphin (July 2, 2014 12:52:46)
- weaverssean
-
10 posts
Please help - how to make the back ground flash behind sprite
Hi
Thanks for your response. That worked. When I tried that without the wait time periods in between the switch backdrops it didn't work. I'm not sure why? Anyway thanks so much for your help.
Sean
Thanks for your response. That worked. When I tried that without the wait time periods in between the switch backdrops it didn't work. I'm not sure why? Anyway thanks so much for your help.
Sean
- djdolphin
-
1000+ posts
Please help - how to make the back ground flash behind sprite
Without the wait blocks between the switch backdrop blocks, the backdrop will switch Hivery quickly, making it look like it never changed at all.
Thanks for your response. That worked. When I tried that without the wait time periods in between the switch backdrops it didn't work. I'm not sure why? Anyway thanks so much for your help.
Sean
Last edited by djdolphin (July 3, 2014 02:37:16)
- weaverssean
-
10 posts
Please help - how to make the back ground flash behind sprite
Ok that makes sense. Thanks for explaining that.
Sean
Sean
- RayAThing
-
13 posts
Please help - how to make the back ground flash behind sprite
Try something like this:when I receive [evaporation flash v]
repeat (10)
switch backdrop to [Evaporation v]
wait (0.2) secs
switch backdrop to [Normal day v]
wait (0.2) secs
end
Yes It's A Bit late But this really worked XD! I just wanted 2 say Thanks!

- uzionics
-
1 post
Please help - how to make the back ground flash behind sprite
Where do you put it? stage or in the sprite
Last edited by uzionics (Sept. 28, 2018 17:21:11)
- Discussion Forums
- » Questions about Scratch
-
» Please help - how to make the back ground flash behind sprite