Discuss Scratch

DA_Neo_lovah
New Scratcher
1 post

I need to make it so you switch characters

I'm trying to make a game where the player HAS to switch his/her character. The game is where Character A is telling you the intro but the one you actually play as is Character B. How can I do this?
footsocktoe
Scratcher
1000+ posts

I need to make it so you switch characters

DA_Neo_lovah wrote:

I'm trying to make a game where the player HAS to switch his/her character. The game is where Character A is telling you the intro but the one you actually play as is Character B. How can I do this?

Each character is a sprite. Put the movement controls in Sprite B's script.

Put the intro statements in Sprite A's script.
Mole_Gaming
Scratcher
100+ posts

I need to make it so you switch characters

This is an easy-to-use method for if you have two characters they can choose from.

Have the player select the character; if they select character A, set a variable to 1. If they select character B, set the variable to 2.

Then, you do this;
switch costume to (character) //the player
switch costume to ((3)-(character)) //the character the player isn't playing as

So if they select character 1, the other one will be 3-1, or 2. If they select 2, the other one will be 3-2, or 1.

Last edited by Mole_Gaming (April 12, 2016 21:22:53)

F_A_Backup
Scratcher
9 posts

I need to make it so you switch characters

Like this (sorry if the blocks look like rubbish)

Sprite A-
when green flag clicked
say [blah blah blah]
broadcast [introdone v]
hide



Sprite B-
when green flag clicked
hide

when I receive [introdone v]
show
then all the motion and other things
MiaM20
Scratcher
3 posts

I need to make it so you switch characters

I'm trying to do a Pokémon clicker game and i let the player switch characters how do i do there choice? pls reply im very confused _)_

Last edited by MiaM20 (Feb. 12, 2021 15:14:51)

deck26
Scratcher
1000+ posts

I need to make it so you switch characters

MiaM20 wrote:

I'm trying to do a Pokémon clicker game and i let the player switch characters how do i do there choice? pls reply im very confused _)_
Please create your own new topic rather than necroposting.
grey_knight294
Scratcher
1 post

I need to make it so you switch characters

HELP ME I NEED HELP to if you click space character then if you click space again your get character 2
lisagu-
Scratcher
1 post

I need to make it so you switch characters

grey_knight294 wrote:

HELP ME I NEED HELP to if you click space character then if you click space again your get character 2

Please Don't Necropost, instead, create your own topic
Xolay
Scratcher
1000+ posts

I need to make it so you switch characters

lisagu- wrote:

grey_knight294 wrote:

HELP ME I NEED HELP to if you click space character then if you click space again your get character 2

Please Don't Necropost, instead, create your own topic
You necroposted
nytscmar3
Scratcher
1 post

I need to make it so you switch characters

I am making a game, and i need to switch characters, you need to ba able to choose if you want to be a boy or girl, how do I do this?
46153m
Scratcher
1 post

I need to make it so you switch characters

Im making a sonic engine and i want to be able to switch from sonic too super sonic, how?
Jlerpy
Scratcher
1000+ posts

I need to make it so you switch characters

nytscmar3 wrote:

I am making a game, and i need to switch characters, you need to ba able to choose if you want to be a boy or girl, how do I do this?

A pretty simple way to do a character select:
For all the other sprites: Put all the stuff you'd normally put after “when Green flag clicked” after a "when I receive “ (let's go with ”Start“) instead and give them a ”when Green flag clicked“ hide
Make a sprite that's a button for each character option and have it appear when the green flag is clicked, then give them code so if they're clicked, then they set a variable to the name of the appropriate character then broadcast ”Start“.
Also give each button ”when I receive Start" hide, so they get out of the way.

Then you can use the variable you set with the character select to either modify costume selections (if your different characters are just a different set of costumes on the same sprite), or to decide which sprite becomes active if you've made them different sprites.
SKeensAB
New Scratcher
1 post

I need to make it so you switch characters

I'm making a zombies game and I need to figure out how I need to change my character

Powered by DjangoBB