Hey guys,
My game has +100 objects the objects is the same sprite. I am making this game for mobile devices so such an object count like that can causing lag and fps drops.
I want to create this objects when they are on screen. When they are off screen, they will be destroyed.
I tried to do this with on-screen but it doesn't work, individually. And I have tried destroy them due to players.Y with object.UID, it takes lots of time but it works. However I can't create object using this way and even I create objects the UIDs will change then I can't destory them.
Is there a way or plugin to create objects when they are on-screen and destory them when they are off-screen ?
Thanks for taking time.