Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Gotcha. I do Destroy() the objects using an invisible wall behind the player. But both Instantiate() (spawning function) and Destroy() itself has some performance costs. It’s better to use object pooling in this case… so we reuse same oranges again n again. I’m just not experienced enough using object pooling, so I didn’t end up using it. 😂

(+1)

That's fine, optimization is usually the last thing one usually thinks about. I don't do it most of the time haha. The wall idea works great, good workaround! Nice!