0 votes

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.

in Engine by (113 points)

1 Answer

0 votes

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.

by (150 points)

Thanks for the reply. I will check it out.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.