How to end a game if Hp = 0

Your browser needs java to view projects. Click here to install Java.

user_icon bosoxtutorial shared it 1 year, 2 months ago
174 views, 1 tagger, 2 people love it, 28 downloads, in 3 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
justbanana justbanana 6 months ago

Not the only way, but the simplest way.

lukemcintyre lukemcintyre 6 months ago

Okay i don't use broadcast and wait, because i'm not to sure on what it does, can you explain the difference between normal broadcast and a waiting one?

hunted hunted 4 months, 3 weeks ago

i think it waits until the script with when i recive game over finishes, then it continues the rest of the script. i you use broadcast. it will continue the script with braodcast. it wont if it has wait in it. i self taught myself that, i litiruly just worked it out. im only 12 :D

Superspeed76 Superspeed76 1 year, 1 month ago

:):):)

kimmy123 kimmy123 1 year, 2 months ago

i just do <if hp = 0>

bosoxtutorial bosoxtutorial 1 year, 2 months ago

i didn't write gmae

(view all replies)
bosoxtutorial bosoxtutorial 1 year, 2 months ago

somtimes it ends up going below 0 and then that wouldn't work

(view all replies)
ddtts ddtts 1 year, 2 months ago

To Vorcus: does you game have hp. If not add some then it will work

Vorcus Vorcus 1 year, 2 months ago

It doesn't work. If I click the flag, it just stops it.

GamingGuyXD GamingGuyXD 6 months ago

You have to create a health variable, then make another sprite in which, let's say, if it touches it, then it subtracts an amount from the variable. If the variable's value reaches a number smaller than 0.1 then it goes to that script.

K5s327 K5s327 1 year, 2 months ago

see my problem is when i do an attack but it goes below zero say between 0 and -10 how do i do that?

bosoxtutorial bosoxtutorial 1 year, 2 months ago

look at demosthenes's comment.

demosthenes demosthenes 1 year, 2 months ago

this script should work on your problem because it uses < (less than).

Please Wait...