The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I'm working on a 3D endless runner and I'm designing the world you fly through. My question is what's the best way to generate the 3D models in the game repeatedly?

At the moment I use a timer, and then get the scene and load it as add_childevery second or so. Then it gets removed once it leaves the players sight with free_queue. Is this a good way or not?

in Engine by (51 points)

1 Answer

0 votes

Are you asking to randomly generate a floor, or continuously generate the pattern of floor your on?

You could set this up using a WHILE statement instead of a timer which will keep generating until a delimiter is used. WHILE player is within a range(not sure if this is set or not), add more floor scenes. If not, remove/null the free_queue.

Have you tested how much strain/threads it would take? If your going for lower-end models it's important to make sure a reasonable/good amount.

by (97 points)
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.