I would like to create and position a few objects. Here is my event sheet:
The story starts with the button. When clicked it logs the number of Pawns. At first, this should be 0.
Then I spawn many Pawns and log the number of Pawns in each loop. This should increase at each loop. At the same condition, I call my move function and log the number of pawns there too. I would expect to log the same number that I logged just after having spawned the pawns. But it logs 0.
As there are no Pawns, clearly my SetPawnPosition function won't find the Pawn with the given `idx` even though it was spawned and set up a second before the move call.
Still, when I click the button for a second time, the correct number of pawns is shown, and the counter does not reset, even though I call Pawns.destroy for every pawn in the first line of "Setup"
pawn count 0
pawn sub 1
pawn move 0
pawn sub 2
pawn move 0
...
pawn sub33
pawn move 0
pawn sub34
pawn move 0
pawn count 34
pawn sub 35
pawn move 35
pawn sub 36
pawn move 36
Is this a bug or I screw up something?