Hey all, got a question regarding the lives object
I can't seem to make it work properly. When the character ship gets hit by an enemy ship, you lose a life. but even after all 5 lives are gone the game won't end. I have an "when last lives are destroyed" event going to end the application but it doesn't work.
Any help is appreciated!
Thanks,
Chris
Re: Hey all, got a question regarding the lives object
"When last lives are destroyed" doesn't sound right - this event would trigger when the Lives object you're using is actually removed from the frame via a Destroy action. To detect when the last life has been lost, either use the "Number of lives has reached 0" condition, or check for the player's number of lives being equal to 0.
This isn't working either
Quote:
Originally Posted by
DavidN
"When last lives are destroyed" doesn't sound right - this event would trigger when the Lives object you're using is actually removed from the frame via a Destroy action. To detect when the last life has been lost, either use the "Number of lives has reached 0" condition, or check for the player's number of lives being equal to 0.
I have tried lives = 0 and when all lives are destroyed with either the "restart current frame" or the "restart application" and none of these restart the game. I have tried adding "Set number of lives" back to 3 when lives = 0 and it doesn't work. I am using the demo version (I have the full version at home) at work (teacher) could this be part of the problem?