How to create pool of obstacles and keep it some where in my game and loading it whenever in need?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By anbarasu chinna

Instancing obstacles node and adding it to scene tree cause my game slight jittery. So what I have done to solve this issue is I have instanced all kinds of enemy in auto-load script of my game, so that it will load while loading game itself, but this also not helped for me. I think there is a better way of creating object pool that can maintain all my enemy references. Can anyone give me link or code sample for creating/instancing/duplicating enemy node? Thanks in advance.

:bust_in_silhouette: Reply From: miskotam

I would check out this Godot demo.

And there are discussions about this topic here, in this forum too. For example, you can check out these.

Thanks for the reply. I will check it out.

anbarasu chinna | 2020-10-06 08:17