i need help to fix a script that if the sprite's varaible (health) falls below zero it ends game
it is this but as soon as it falls below 0 it doesn't stop
if 1>Player health
switch costume boom
say: game over
stop all
plz correct me
Offline
forever if 0.001 > Health
| switch to costume |boom|
| say: |game over|
|Stop All
__________________________
Offline
Wow thanks
Offline
I would have thought
|Forever If {Health > 0}
|| Broadcast End Game
||Switch to costume Boom
This way you can make it so when you die you can put 'When End Game Recieved' Instead of When flag clicked on the first script line. Then put whatever you want to happen under that tag. This'll make it so you can edit more than just your character and it's quite simple.
Offline
Sorry for double posting, but i don't know where the edit button is XD
Instead of Forever if Health > 0 It should be
Forever is Health < 0 Or equal to 0
Offline
Buggy132KX wrote:
Sorry for double posting, but i don't know where the edit button is XD
[Off-topic helpfulness] It's at the bottom left of the post... There's also some other neat buttons like "Report," "Quote," "Delete," etc...
Offline
Sorry to be off topic, but i cannot see it, do i need a certain amount of posts? I only see quote and delete
Offline
Buggy132KX wrote:
Sorry to be off topic, but i cannot see it, do i need a certain amount of posts? I only see quote and delete
![]()
Oh, yes, the reason you don't see it is because you're classified as a "New Scratcher" - sorry for the confusion!
Offline