Hello, I am looking for someone to take a small bit of time out of their day to help me fix a problem in my code. I have scoured every tutorial, asked many questions on the forums, and still am not able to solve the problem after a month. I feel that this is the last place I can go to try and find help. I am beginning to think that I lack some sort of programming fundamental to fix this problem and am burnt out. An experienced programmer can solve the issue pretty fast, I feel.
I am making a simple turn-based movement demo in Godot. It features three sprites that are the default Godot icon. The demo is meant to demonstrate each sprite taking one movement (with a singular press of the right arrow key by the user) before going to the next two sprites to make their movement. Then the queue would restart at the beginning with the first sprite.
The issue I am having is with my parent turn queue script that manages the children sprites. The current state of the program shows that the sprite whose turn it is to move is changing with each keypress, as intended. Yet, all sprites still move at the same time. I have messed around with the turn queue script's calls on the sprites and am able to get one or two sprites to move one after the other, but then the queue breaks and they all move at the same time. I've tried every variation to fix this but to no avail.
I would like the fix to alter the code as little as possible, but I do understand if a serious restructure is required. If you would like to help, please let me know. I am willing to answer any other questions on the code as necessary. Thank you!