Destroying Actor

I have a bunch of moving actors so i want them to be destroyed so that the device's CPU will not overrun .
So i set all of my moving actors to be destroyed when their X Position is greater or equal to -15.
But they don't seem to be destroyed after that position.

What is the problem?

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited March 2015

    So i set all of my moving actors to be destroyed when their X Position is greater or equal to -15.

    Greater (or equal) to -15 is pretty much everywhere ! :smile:

    -15 is 15 pixels passed the left hand edge of your scene, so anything you can see in the scene is located at an X position that is greater than -15 pixels, so everything in the scene will be destroyed ?

  • EpicoreGamesEpicoreGames Member Posts: 188

    So do you have any other way to destroy them after they show ? I mean like destroy them after they passed the camera and destroy them outside the camera.

  • SocksSocks London, UK.Member Posts: 12,822

    @GameSecret said:
    So do you have any other way to destroy them after they show ? I mean like destroy them after they passed the camera and destroy them outside the camera

    I don't know anything about your game so can only really make guesses . . . you say that "they don't seem to be destroyed after that position" but like I say according to your rule everything in the scene should be destroyed ?

    How are you able to tell that the actors are not being destroyed ?

  • EpicoreGamesEpicoreGames Member Posts: 188

    i still see them moving until out of the scene

Sign In or Register to comment.