So I just created a new example, where do the following:
1. Set a index int to 0
2. Run through a loop X amount of times based on array, debug by outputting the index int number (Using "Array Get Next")
3. Pressing a key to reset
And that works.
So I redid my scoreboard loop.
1. I set index to 0
2. I run through my scoreboard array using "Array get next"
3. I compare the new score to the score in my array, if it's higher then proceed.
4. If the score is higher then save the index as the placement for our new highscore. Using "Set int" PlayerSpot_I = PlayerIndex_I (PlayerIndex_I is the index variable i use in the array get next.
I don't use my PlayerIndex_I anywhere else than these three states but somehow it outputs 0 the first time you run it. and then 1 the second time even though both are new highscores.
Can it be something with the array not updating the new score that I input?
This is what happen, my score is 0, 0, 0 for top 3, I set a score at 100 and the score becomes 100, 0, 0. Then I replay the game and sets a score at 120 which then gives me 100, 120, 0 but only if I replay it from the same game scene, if I reload the game scenes it works. It's so weird.