How to end a game if Hp = 0

Install Java to view this project right on your browser!

user_icon bosoxtutorial shared it 3 years, 8 months ago
371 views, 1 tagger, 2 people love it, 57 downloads, in 4 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
samuel2k10 samuel2k10 1 year, 2 months ago

Ta mate helps a lot with exam work

eer4 eer4 1 year, 9 months ago

I already new this stuff butt it's impotent 2 know

justbanana justbanana 3 years ago

Not the only way, but the simplest way.

lukemcintyre lukemcintyre 3 years 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 2 years, 10 months 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 3 years, 7 months ago

:):):)

kimmy123 kimmy123 3 years, 8 months ago

i just do <if hp = 0>

bosoxtutorial bosoxtutorial 3 years, 8 months ago

i didn't write gmae

(view all replies)
bosoxtutorial bosoxtutorial 3 years, 8 months ago

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

(view all replies)
ddtts ddtts 3 years, 8 months ago

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

Vorcus Vorcus 3 years, 8 months ago

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

GamingGuyXD GamingGuyXD 3 years 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 3 years, 8 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 3 years, 8 months ago

look at demosthenes's comment.

demosthenes demosthenes 3 years, 8 months ago

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

Please Wait...