Posted: 25th Jan 2022 2:35
length=0 or length=-1 ????

Ok so I am trying my hardest to figure this out.

After the game the player goes back to the menu just for this demo .

Then if you play again a lot of things are not position correctly.

If I reset my arrays to 0 as MyArray.length=0 A lot is not correct.

but if I say MyArray.length=-1 then some stuff is correct but then it crashes a lot, not all the time but here and there.

What is wrong?
Posted: 25th Jan 2022 3:14
MyArray.length=-1 is correct
I suspect that maybe some other index type variables need to be reset
Posted: 25th Jan 2022 3:58
I suspect that maybe some other index type variables need to be reset


Ok thank you so much for the clarification.

Now I need to check everything.