Game Development Community

Killing an object

by Chris Canepa · in Torque X Platformer Kit · 09/29/2008 (3:25 pm) · 0 replies

I have an object that moves along the ground but what I want is when it is far enough off the screen, I want it to be gone. I don't know whether I need to use the camera or just check if it is a certain distance in front of the player.

My thoughts would be to check the viewport position but I'm not sure how.