Discussion in 'Programming' started by Master Maker, Aug 31, 2017.
How do I implement quadtrees? It's for a 2D, side-view platformer.
If you're worried about performance due to amount of instances, it might be easier to use instance activation and deactivation to minimize the amount of CPU time devoted to them. If you need the terrain to stay active while outside the view for example for enemy movement and collision detection, you should use some form of grid collision system. It would let you give them collision detection against static terrain without having the terrain instances active.
So how would I implement it?
You mean grid collision? One articles that goes into its technicalities is over here (scroll down to type #2).