CameraProject cam,EntityX(entity),EntityY(entity),EntityZ(entity) x=ProjectedX() y=ProjectedY() If x<10 ... EndIf If x>GraphicsWidth()-10 ... EndIf If y<10 ... EndIf If y>GraphicsHeight()-10 ... EndIf