Im working on a turn manager for turn based combat,
Ive had an issue where when I provide input (eg left) all the players move.
From my turn manager, I call a func on the first player called "play_turn",
it prints "*name* started turn" then sets process to true.
Then for a basic debug, in process, it prints "AP is now..."
If I have 3 players,
my output says
Player started turn
AP is now 9
AP is now 9
AP is now 9
AP is now 8
AP is now 8
AP is now 8
.
.
. (etc)
once per player despite only one player starting their turn
It seems that _process() is playing out for each player
so when i set process to true, it did so for all instances
Is there a way i can set process true for only one instance, not all instances of the player scene?
ps they are true separate instances where their variables an differ from one another, not duplicates or something.
eg a = X.instance, addchild(a), b = X.instance, addchild(b)...