not killed enemies: change to many the performance?

MarcoColMarcoCol Member, PRO Posts: 279
edited October 2012 in Working with GS (Mac)
If I create a game where I can shot enemies, which fly in the screen and out if they was not killed, did they are still "alive" and change the speed of the game to become more and more slow? Or does they "not count" if they are not in the screen?

Comments

  • POMPOM Member Posts: 2,599
    IF you make this game..
    You should know -
    Actors going to far ( I think about 550 pixels) away from the edges of your scene ( your scene canvas , not camera area) will be automatically destroyed,
    However, when making a game it's better if you put the rules to destroy unnecessary actors , or even better - recycle them.

    A simple rule can do the trick:
    When self.position.X is > 600 ( or any other number)
    Destroy.

    And to your question-
    Yes, actors remaining outside the camera area are affecting performance, too many of them might cause major glitches .

    Roy.
Sign In or Register to comment.