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

#1 2011-05-07 10:04:14

imnotbob
Scratcher
Registered: 2010-12-11
Posts: 1000+

How do i make somebody die in my game>

I'm making a game where a villian runs away after HP is set t 0, but how do i do that?

Help plz!


PesterChum Handle: annoyingAnchorman
durp yo terezi sup sup gotta beat john gotta beat john

Offline

 

#2 2011-05-07 10:20:01

777w
Scratcher
Registered: 2009-02-10
Posts: 1000+

Re: How do i make somebody die in my game>

imnotbob wrote:

I'm making a game where a villian runs away after HP is set t 0, but how do i do that?

Help plz!

Well, if you post a demo, I may be able to help!

Offline

 

#3 2011-05-07 13:33:11

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: How do i make somebody die in my game>

<when green flag clicked>
<wait until><( <{ VillainHealth }> <>> 0 )>
<wait until><( <{ VillainHealth }> <<> .1 )>
Script to run away goes here.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#4 2011-05-07 20:28:45

imnotbob
Scratcher
Registered: 2010-12-11
Posts: 1000+

Re: How do i make somebody die in my game>

MoreGamesNow wrote:

<when green flag clicked>
<wait until><( <{ VillainHealth }> <>> 0 )>
<wait until><( <{ VillainHealth }> <<> .1 )>
Script to run away goes here.

thank you!


PesterChum Handle: annoyingAnchorman
durp yo terezi sup sup gotta beat john gotta beat john

Offline

 

#5 2011-05-08 07:25:23

777w
Scratcher
Registered: 2009-02-10
Posts: 1000+

Re: How do i make somebody die in my game>

MoreGamesNow wrote:

<when green flag clicked>
<wait until><( <{ VillainHealth }> <>> 0 )>
<wait until><( <{ VillainHealth }> <<> .1 )>
Script to run away goes here.

Not quite...more like this.

Last edited by 777w (2011-05-08 07:25:54)

Offline

 

#6 2011-05-08 09:37:43

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: How do i make somebody die in my game>

777w wrote:

MoreGamesNow wrote:

<when green flag clicked>
<wait until><( <{ VillainHealth }> <>> 0 )>
<wait until><( <{ VillainHealth }> <<> .1 )>
Script to run away goes here.

Not quite...more like this.

The only advantage your script has over mine is if you want the enemy to come back after you beat him.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer