How to stop actors from spawning
ckurt25
Member Posts: 122
So part of my game is similar to Falling Balls. You have an actor spawn and bounce / fall or whatever and leave the screen. From what I can tell in Falling Balls, score is kept once one of the balls leaves the screen, to the right. Once you are killed no more balls spawn and the ones currently on the screen do not add to the score once they leave the screen.
I've built my game to score a point once the falling actor touches an invisible actor at the bottom of the screen. In my game you have health and once that hits 0 the game is over. Currently I have "game over" come on that screen for a few seconds before you are taken to the new screen that displays your score, the high score and an option to play again. Because there are a few seconds that elapse between health reaching 0 and you jumping to the next scene, the falling actors continue to touch the invisible actor and add to the score. Ideally I'd like the actors to either stop falling or stop scoring once health hits 0. I know I could just immediately jump to the next scene but if I can come up to do it like Falling Balls, I'd rather do it that way. Any ideas?
Thanks in advance for all your help.
PS - I've only been doing this for 2 days so go easy on me
Chris
I've built my game to score a point once the falling actor touches an invisible actor at the bottom of the screen. In my game you have health and once that hits 0 the game is over. Currently I have "game over" come on that screen for a few seconds before you are taken to the new screen that displays your score, the high score and an option to play again. Because there are a few seconds that elapse between health reaching 0 and you jumping to the next scene, the falling actors continue to touch the invisible actor and add to the score. Ideally I'd like the actors to either stop falling or stop scoring once health hits 0. I know I could just immediately jump to the next scene but if I can come up to do it like Falling Balls, I'd rather do it that way. Any ideas?
Thanks in advance for all your help.
PS - I've only been doing this for 2 days so go easy on me
Chris
Comments
make it like:
if attribute: can spawn = true, then let the falling actors spawn
if character actor is destroyed, change attribute can spawn = false.
hoped that helped a bit.