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?
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
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.
Comments
You need to be logged in to post comments
Add a Comment
Not the only way, but the simplest way.
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?
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
:):):)
i just do <if hp = 0>
i didn't write gmae
(view all replies)somtimes it ends up going below 0 and then that wouldn't work
(view all replies)To Vorcus: does you game have hp. If not add some then it will work
It doesn't work. If I click the flag, it just stops it.
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.
see my problem is when i do an attack but it goes below zero say between 0 and -10 how do i do that?
look at demosthenes's comment.
this script should work on your problem because it uses < (less than).