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

#1 2010-08-23 13:24:07

flameswy
Scratcher
Registered: 2010-08-23
Posts: 11

I could use help...

im working on my first scratch project, a two player game.
i have both sprites working fine now, able to lower each other's counters and such...
but i need a script that will broadcast the winner, and a script to change the coustume of the loser to his dead costume, when his hp hits zero.

any suggestions?
please keep in mind that im new, so keep it simple, thanks.


"I am only one man with one heart...Call me a demon, call me a monster...but I can't be the strongest forever...!"
~Whitebeard

Offline

 

#2 2010-08-23 13:28:35

coppearlix
Scratcher
Registered: 2010-01-31
Posts: 500+

Re: I could use help...

How about you have two variables for their health points, and <if><( Player1health <=>  0)><broadcast[ Player2Won

And vice versa. Then: <when I receive[ Player2Won<switch to costume[ dead


The Gobo has transformed--into the Gobony!
It's ALIIIIVE!

Offline

 

#3 2010-08-23 13:49:39

flameswy
Scratcher
Registered: 2010-08-23
Posts: 11

Re: I could use help...

ok, ill try that, thanks.


"I am only one man with one heart...Call me a demon, call me a monster...but I can't be the strongest forever...!"
~Whitebeard

Offline

 

#4 2010-08-23 13:57:54

coppearlix
Scratcher
Registered: 2010-01-31
Posts: 500+

Re: I could use help...

No problem.


The Gobo has transformed--into the Gobony!
It's ALIIIIVE!

Offline

 

Board footer