Discuss Scratch

Extremecodingnoob
Scratcher
7 posts

Please help with script :( I am noob

I am trying to create a title screen in between levels announcing the next level. However, the sprites will still appear over the screen announcements despite me using “When I receive” blocks and “hide” or “ stop script”. What should I do?

jaskeI
Scratcher
100+ posts

Please help with script :( I am noob

go to front

Hello, I am Jaskel!

I am a Scratch coder with 5+ years experience, and enjoy helping people on the ¨Help with Scripts¨ Forum.
CrazyCoolYT
Scratcher
25 posts

Please help with script :( I am noob

It's difficult to know without being able to look inside your game, but in my game (shameless plug) when I made my main menu / title screen + my game over screen, I did this:

For the main menu, I used a backdrop for the non-clickable parts and external sprites as buttons.
For my game over screen (which would be similar to your level-by-level title cards) I used “when I recieve” and “show” blocks, as well as “move to front layer”. That should pretty much cover everything else on screen.

I've never used Scratchblocks before on the forums, but I'm gonna try to show you here:

when I receive [Level X Complete]
show
go to front
hide variable [whatever variables you want - lives, score, etc]

Then go into your other sprites for Level X and make scripts that go something like:

when I receive [Level X Complete]
hide

And for Level Y sprites:

when I receive [Level X Complete]
show

And so on and so forth. It seems like you've already tried this, so if it doesn't work you can just copy the parts of your project that you need help with into a new project and link that so I (and others) can see your code and try to diagnose any errors.

Last edited by CrazyCoolYT (March 29, 2024 16:12:45)


Hey! You, reading this! Wanna kill some zombies like a super-freakin'-cool action hero (insert cool emoji)? Well, you're in luck, because I've got just the game for you!

https://scratch.mit.edu/projects/689579905/

You're welcome!
Extremecodingnoob
Scratcher
7 posts

Please help with script :( I am noob

Thank you guys It worked and stop coming over the announcement screen! I will have more questions though. If it is okay can I follow the both of you and message if I need advice? Thank you.

Last edited by Extremecodingnoob (March 30, 2024 02:35:25)

Vaibhs11
Scratcher
1000+ posts

Please help with script :( I am noob

Extremecodingnoob wrote:

If it is okay can I follow the both of you and message if I need advice?
It is better to post any problems on this forum itself, because more people who know more things can reach you. It's your wish though.

Powered by DjangoBB