Destroying Actor
EpicoreGames
Member Posts: 188
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
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 !
-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 ?
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 ?
i still see them moving until out of the scene