Discuss Scratch

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:
whenthisspriteclicked

If the player clicks Bob, you can have this:
whenthisspriteclickedbroadcastbob has been chosen!!!

When you broadcast a message, every sprite will get the message so this is what you put for Steve:
whenIreceivebob 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
foreveriftouching hippo2?thenswitchbackdropto bluesky3broadcast game overstop all
whenIreceive game overhide

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.

pupper_ wrote:

Hi, thanks! It worked perfectly. But, now I'm having another problem. Let me show you
foreveriftouching hippo2?thenswitchbackdropto bluesky3broadcast game overstop all
whenIreceive game overhide

the sprites aren't hiding and the backdrop isn't changing, why is that?
Does it stop the project?
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:
whenIreceivestart gameplaywaituntiltouchinghippo2?switchbackdroptobluesky3broadcastgame overandwaitstopall
Hopefully that helps.

Last edited by DaEpikDude (Oct. 17, 2017 00:00:58)

cs2485146
Scratcher
1 post

Need help with a character select screen.

im so happy

deck26
Scratcher
1000+ posts

Need help with a character select screen.

cs2485146 wrote:

im so happy

That's good but spamming the forum is not a good way to celebrate.
HL-107572
New Scratcher
1 post

Need help with a character select screen.

yooooooo
deck26
Scratcher
1000+ posts

Need help with a character select screen.

HL-107572 wrote:

yooooooo
Please 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.

deck26 wrote:

HL-107572 wrote:

yooooooo
Please don't spam or necropost.
how is that spamming?
spamming is repeatedly saying something over and over.
game_pr0grammer
Scratcher
500+ posts

Need help with a character select screen.

Avacadolicious_x wrote:

deck26 wrote:

HL-107572 wrote:

yooooooo
Please don't spam or necropost.
how is that spamming?
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.

Avacadolicious_x wrote:

deck26 wrote:

HL-107572 wrote:

yooooooo
Please don't spam or necropost.
how is that spamming?
spamming is repeatedly saying something over and over.
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.
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
whenIreceive menu selectswitchbackdropto back1 menushowiftouchingmouse pointer?thennextcostumeelseifmousedown?thenswitchbackdroptoselect player Oofiohidehide
and this as well sorta
whenthisspriteclickedbroadcast Character Selectswitchbackdropto select player Oofiohide
its 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)
(edited)



Last edited by SIG7VBC (Dec. 8, 2019 22:50:21)

PotatoNia
New Scratcher
1 post

Need help with a character select screen.

kuchikoo wrote:

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:
whenthisspriteclicked

If the player clicks Bob, you can have this:
whenthisspriteclickedbroadcastbob has been chosen!!!

When you broadcast a message, every sprite will get the message so this is what you put for Steve:
whenIreceivebob 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.

PotatoNia wrote:

kuchikoo wrote:

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:
whenthisspriteclicked

If the player clicks Bob, you can have this:
whenthisspriteclickedbroadcastbob has been chosen!!!

When you broadcast a message, every sprite will get the message so this is what you put for Steve:
whenIreceivebob 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:
whenIreceive
broadcast
broadcastandwait

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.

AmariTheCodeman wrote:

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:

broadcast(costume #)

Then check depending on what number was broadcast.
taco_berry
New Scratcher
1 post

Need help with a character select screen.

i dont get it………….
\
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

Powered by DjangoBB