Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Need help with a character select screen.
- pupper_
-
New Scratcher
2 posts
Need help with a character select screen.
So, I'm making this game called Avoid the Hippos! And I want the player to be able to select their character from a few choices. I know how to sense a click on a sprite, but once they do it, how would I make the other sprites become hidden?
- kuchikoo
-
Scratcher
66 posts
Need help with a character select screen.
Here is an example:
If you have two characters (Let's just say they are called “bob” and “steve”) you can put this block in for both those characters:
If the player clicks Bob, you can have this:
When you broadcast a message, every sprite will get the message so this is what you put for Steve:
I hope that I helped! If you're a bit confused, you can always ask me for help and I can show a better example! Good luck!

If you have two characters (Let's just say they are called “bob” and “steve”) you can put this block in for both those characters:
when this sprite clicked
If the player clicks Bob, you can have this:
when this sprite clicked
broadcast [bob has been chosen!!!]
When you broadcast a message, every sprite will get the message so this is what you put for Steve:
when I receive [bob has been chosen!!!]
hide
I hope that I helped! If you're a bit confused, you can always ask me for help and I can show a better example! Good luck!

- pupper_
-
New Scratcher
2 posts
Need help with a character select screen.
Hi, thanks! It worked perfectly. But, now I'm having another problem. Let me show you
the sprites aren't hiding and the backdrop isn't changing, why is that?
forever
if <touching [ hippo2] ?> then
switch backdrop to [ bluesky3]
broadcast [ game over]
stop [ all]
end
end
when I receive [ game over]
hide
the sprites aren't hiding and the backdrop isn't changing, why is that?
Last edited by pupper_ (Oct. 16, 2017 21:51:44)
- DaEpikDude
-
Scratcher
1000+ posts
Need help with a character select screen.
Hi, thanks! It worked perfectly. But, now I'm having another problem. Let me show youDoes it stop the project?forever
if <touching [ hippo2] ?> then
switch backdrop to [ bluesky3]
broadcast [ game over]
stop [ all]
end
endwhen I receive [ game over]
hide
the sprites aren't hiding and the backdrop isn't changing, why is that?
If it does: you can do these:
1: make sure the backdrop “bluesky3” actually exists with no spelling mistakes / extra spaces etc.
2: replace “broadcast game over” with “broadcast game over and wait”
It should work.
If it doesn't stop at all, maybe add an extra script that says:
when I receive [start gameplay v]Hopefully that helps.
wait until <touching [hippo2 v]?>
switch backdrop to [bluesky3 v]
broadcast [game over v] and wait
stop [all v]
Last edited by DaEpikDude (Oct. 17, 2017 00:00:58)
- deck26
-
Scratcher
1000+ posts
Need help with a character select screen.
That's good but spamming the forum is not a good way to celebrate.im so happy
- deck26
-
Scratcher
1000+ posts
Need help with a character select screen.
yoooooooPlease don't spam or necropost.
- Avacadolicious_x
-
New Scratcher
2 posts
Need help with a character select screen.
how do you do the select a character thing because I've coded 1 character but i don't know how to do the others without the 1st character showing. 

Last edited by Avacadolicious_x (Nov. 29, 2019 04:25:42)
- Avacadolicious_x
-
New Scratcher
2 posts
Need help with a character select screen.
how is that spamming?yoooooooPlease don't spam or necropost.
spamming is repeatedly saying something over and over.
- game_pr0grammer
-
Scratcher
500+ posts
Need help with a character select screen.
how is that spamming?yoooooooPlease don't spam or necropost.
spamming is repeatedly saying something over and over.
emphasis on “necropost”
and you also just necroposted
- deck26
-
Scratcher
1000+ posts
Need help with a character select screen.
Spamming is posting something that isn't relevant. That may not be the case here but still better to post a new topic and share your project.how is that spamming?yoooooooPlease don't spam or necropost.
spamming is repeatedly saying something over and over.
- SIG7VBC
-
Scratcher
11 posts
Need help with a character select screen.
Hello? Anybody here? Well incase anybody but me is here then I also want a character select, I have my menu set up and 2 buttons a ‘start’ button and a ‘select character’ button the title screen has a press here button that always disappears and when I have my ‘character select’ button loaded in it disappears sorta like this
(edited)
when I receive [ menu select v]and this as well sorta
switch backdrop to [ back1 menu v]
show
if <touching [mouse pointer v] ?> then
next costume
else
if <mouse down?> then
switch backdrop to [select player Oofio v]
hide
hide
end
end
when this sprite clickedits for my game called Ivan Mania (Scratch Port) and I want 3 playable characters: Ivan, Zaidrian, and Bitzy (yes that's the character's name)
broadcast [ Character Select v]
switch backdrop to [ select player Oofio v]
hide
(edited)
Last edited by SIG7VBC (Dec. 8, 2019 22:50:21)
- PotatoNia
-
New Scratcher
1 post
Need help with a character select screen.
Here is an example:
If you have two characters (Let's just say they are called “bob” and “steve”) you can put this block in for both those characters:when this sprite clicked
If the player clicks Bob, you can have this:when this sprite clicked
broadcast [bob has been chosen!!!]
When you broadcast a message, every sprite will get the message so this is what you put for Steve:when I receive [bob has been chosen!!!]
hide
I hope that I helped! If you're a bit confused, you can always ask me for help and I can show a better example! Good luck!![]()
![]()
Thank you very much! The thing is though, with this scratch, I don't have a brodcast box. How do I get one?
- ramenosu
-
Scratcher
55 posts
Need help with a character select screen.
Here is an example:
If you have two characters (Let's just say they are called “bob” and “steve”) you can put this block in for both those characters:when this sprite clicked
If the player clicks Bob, you can have this:when this sprite clicked
broadcast [bob has been chosen!!!]
When you broadcast a message, every sprite will get the message so this is what you put for Steve:when I receive [bob has been chosen!!!]
hide
I hope that I helped! If you're a bit confused, you can always ask me for help and I can show a better example! Good luck!![]()
![]()
Thank you very much! The thing is though, with this scratch, I don't have a brodcast box. How do I get one?
Please don't necropost. Make your own topic for others to help you.
Now since this is easy to do, I'll help you.
Look in the “Events” tab. There should be 3 blocks that relate to broadcast:
when I receive []
broadcast []
broadcast [] and wait
To make your own broadcast, click on the arrow in the block, and make a new message.
- AmariTheCodeman
-
Scratcher
1 post
Need help with a character select screen.
Hi my name is amari and you can use WASD or arrowkeys for moving your character around.
Last edited by AmariTheCodeman (March 2, 2020 11:49:39)
- Bloxmakesgames2019
-
Scratcher
100+ posts
Need help with a character select screen.
Hi my name is amari and you can use WASD or arrowkeys for moving your character around.Please don’t Necropost
- minecraft_sprite
-
Scratcher
36 posts
Need help with a character select screen.
Do clones and put them each with different costumes. Then, do something like this:
Then check depending on what number was broadcast.
broadcast [(costume #)]
Then check depending on what number was broadcast.
- shine_fafnir
-
Scratcher
1 post
Need help with a character select screen.
cool but u can also use variebels
for example Set hero to bob
for example Set hero to bob
- Discussion Forums
- » Help with Scripts
-
» Need help with a character select screen.
im so happy
