I am trying to do something which seems simple, but for some reason isn't!
I simply want to know how to make a sprite invisible if it is off the screen. There is a 'on screen' setting, but not an 'off screen'. Any ideas?
Basically, I have a forest full of trees, all individual sprites. The game lags a lot though because there are hundreds of sprites. I simply want to try and make it so that all of the trees are invisible, unless the player is near them. That way, all the off-screen trees won't be using up memory...