Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | dlipdhunter | |
Old Version | Published before Godot 3 was released. |
I am developing a 2d side scrolling game. when the game starts I put two instance of platform.tscn so the player can run on it. What I want to do is, when player reaches 30% of the second platform I want to re-position the first platform next to second platform and so on.
In c# (i am basically from .net background) I would create a queue and put these two platform in it and recycle them using enqueue and dequeue operations.
How to implement a recycling mechanism in gdscript?