This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-08-07 17:57:51

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Character Selection

I just want to know the script so when you click on a character or stage you can play as that character. i have an idea of how it might work but i'm asking just to be sure so can anyone help me out?


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#2 2008-08-07 18:46:16

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Character Selection

Can someone help me please


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#3 2008-08-07 18:46:55

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Character Selection

<switch to costume[ <{ character  }>


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#4 2008-08-07 18:48:33

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Character Selection

Bluestribute wrote:

<switch to costume[ <{ character  }>

Actually i know that won't work. they to be individual sprites


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#5 2008-08-07 18:50:36

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Character Selection

joeisawesome wrote:

Bluestribute wrote:

<switch to costume[ <{ character  }>

Actually i know that won't work. they to be individual sprites

<if><( <{ character  }> <=> 1 )>
<if><( <{ character  }> <=> 2 )>
<if><( <{ character  }> <=> 3 )>

etc


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#6 2008-08-07 18:54:41

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Character Selection

I might have an idea!

for the charcter selectors:

<when green flag clicked>

<set{ character #  }to( 0

<when[ character selector clicked ]clicked>

<set{ character #  }to( the # of the character you clicked
And for the characters:

<when green flag clicked>

<hide>

<forever if>

<(  <{ character #  }> <=> this character's #  )>

<show>

<end>


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

#7 2008-08-08 03:30:39

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Character Selection

Hi joeisawesome,

I already tried out creating "select-a-character". You can see it here: joeisawesome Its my racing project.

Maybe it's too difficult to understand all of the other scripts , I'll explain it here:

On your menu, you have one sprite for each selectable character.
Create a script "When ___ clicked, set character_selected to 1 (replace 1 by the number of your character)
Now create: when i receive "start", if not charcacter_selected=1, hide

Is that clear? I'm not that good at explaining things...

Which is actually your example  big_smile

PS: I removed one image from your signature, it was fun, but remember there are very young kids here - it was a bit violent, not?


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#8 2008-08-08 06:33:15

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Character Selection

<when[ picture ]clicked>
<broadcast[ MArio.

On mario start with all when I recieve scripts rather than useing a bunch of variable and stuff. An example wuold be my Super smash bros game.

Oh, and I agree with jso about the sig.

Last edited by Bobby500 (2008-08-08 06:33:44)

Offline

 

#9 2008-08-08 18:35:16

joeisawesome
Scratcher
Registered: 2008-06-10
Posts: 1000+

Re: Character Selection

I'm gonna miss that sig... :'(


http://image.hotdog.hu/user/Alex-21/Zenekarok-Ensiferum.jpg

Offline

 

Board footer