1 - Don’t use while
Cause its not helping you and seems you don’t even understand how to use it
2 - Look closely what my logic is
I CLEAR all child vars from Array at beginning of the scene
Just so we are sure it have none
Then i am constantly printing to text how many child vars it have
Well obviously 0
3 - Press space
And only thing you want to pay attention to is last/only sub event
Where i check if child var at index 1 of array is greater than 0
4 - How many child vars does text variable show that Array have?
You can press tilde to reset scene
5 - AS SOON as you in any way check any Array variable or try reference it you are creating it
Imagine you want to check if i have 10$ in my wallet
In most engines you cannot go like zero does not exist so for sure there is 0$
NAH its like zero does not exist so i need to create zero to check how much money he have in wallet
And since we are checking here array child at index 1 then child at index 0 is also created automatically
That is why after you hit space text shows 2
