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

#1 2012-03-07 11:51:16

SimplyMelee
Scratcher
Registered: 2012-01-14
Posts: 100+

can anyone tell me how to...

Hi, I'm making a game but I would like it so when I kill all my opponents it will allow me to go to the shop but I don't know how to! I've tried using broadcast but I'm not to experienced - perhaps there is a trick to help me?

Thanks in advance!


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

Offline

 

#2 2012-03-07 11:54:39

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: can anyone tell me how to...

You might want to experiment with variables.  Create a variable called "Number of Opponents" and set it to the proper value when the project starts up.  Then, have the opponent sprites change it's value by -1 when they die.  Finally, when your guy tries to go to the shop, test on the variable and see if it's zero.  That should work.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2012-03-07 12:01:28

SimplyMelee
Scratcher
Registered: 2012-01-14
Posts: 100+

Re: can anyone tell me how to...

Thanks, How did you know there was a shop?


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

Offline

 

#4 2012-03-07 12:02:46

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: can anyone tell me how to...

SimplyMelee wrote:

Thanks, How did you know there was a shop?

cos you said so in the OP (original post)


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

Board footer