Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Level 5 game over script help with switching backdrops.
- Minightens
-
13 posts
Level 5 game over script help with switching backdrops.
So short summary of my game:
- the graphics are not done yet so when you click on start, there will be a bunch of random lines instead of a story. You can click on skip to skip through it.
- I have 5 levels
- To speedrun through the levels and find the glitch, you can drag my sprite to the portal in “See inside”
When I get to level 5, I go to the portal (just drag it to the portal since the bouncing agents haven't been added to the level), and my game-over script starts. It is at the end of the sprite (when the portal is touched. ) Now, the glitch is that once I touch the portal, my script starts, however, simultanesuly, there are other scripts running. I tried using the
block, but it didn't work, only made things work. I am here to ask for advice on this. https://scratch.mit.edu/projects/832526915 is the link to my project
- the graphics are not done yet so when you click on start, there will be a bunch of random lines instead of a story. You can click on skip to skip through it.
- I have 5 levels
- To speedrun through the levels and find the glitch, you can drag my sprite to the portal in “See inside”
When I get to level 5, I go to the portal (just drag it to the portal since the bouncing agents haven't been added to the level), and my game-over script starts. It is at the end of the sprite (when the portal is touched. ) Now, the glitch is that once I touch the portal, my script starts, however, simultanesuly, there are other scripts running. I tried using the
block, but it didn't work, only made things work. I am here to ask for advice on this. https://scratch.mit.edu/projects/832526915 is the link to my project
- expido
-
6 posts
Level 5 game over script help with switching backdrops.
Hey, I tried your game. When you go to the last level, it counts up from ten, but it keeps disappearing a lot, then it says go, and then it shows a screen with faint lines. It seems like you want it to show some sort of “you did it screen”, is that correct? But I can suggest you make the timer thing (1-10, go) it's own sprite so it will be in front of everything else
Last edited by expido (April 8, 2023 02:35:46)
- Minightens
-
13 posts
Level 5 game over script help with switching backdrops.
So, the counting thing is actually something I put in for myself. Its meant to be like a story where you get a final object and save the city. It's not really counting up or down, it's meant to be just backdrops. But is that meant to be a separate sprite too or is that only for counting?
- expido
-
6 posts
Level 5 game over script help with switching backdrops.
If you're fine with it in the background, that's fine then. So you want it to start like the final level where you save the city after level five? where is the script that isn't working?
- 09878901234321
-
500+ posts
Level 5 game over script help with switching backdrops.
To switch backdrops during your game over script in level 5, you can use the "switch backdrop to " block. Here's an example script you can use:
You can place this script inside your level 5 sprite and it will be triggered when the sprite touches the portal. The “wait” block is included to give a brief pause before switching back to the first backdrop and broadcasting the “start over” message to other sprites.
You mentioned that other scripts are running simultaneously. If these scripts are causing issues during the game over script, you can try pausing or stopping them temporarily. For example, you can use the "stop " block to pause or stop other scripts in other sprites or in the current sprite. You can place these blocks before the game over script to ensure that the script runs smoothly without interference.
I hope this helps!
You can place this script inside your level 5 sprite and it will be triggered when the sprite touches the portal. The “wait” block is included to give a brief pause before switching back to the first backdrop and broadcasting the “start over” message to other sprites.
You mentioned that other scripts are running simultaneously. If these scripts are causing issues during the game over script, you can try pausing or stopping them temporarily. For example, you can use the "stop " block to pause or stop other scripts in other sprites or in the current sprite. You can place these blocks before the game over script to ensure that the script runs smoothly without interference.
I hope this helps!
- Minightens
-
13 posts
Level 5 game over script help with switching backdrops.
I appreciate you taking the time to look at my game. However, I do not fully understand what you are trying to say. Do I incorporate a When this Sprite Clicked Block and use that code? Or is it only for the switch backdrop to block? For the level 5 script,
Is this what you meant?
@expido The script I think is having a problem is my story end-start script mentioned above. At the end of the script, I added a custom block called “Game over”
Is this what you meant?
@expido The script I think is having a problem is my story end-start script mentioned above. At the end of the script, I added a custom block called “Game over”
- sealeystinks
-
5 posts
Level 5 game over script help with switching backdrops.
you should do this
- Discussion Forums
- » Help with Scripts
-
» Level 5 game over script help with switching backdrops.