I have an Object/Sprite that has its Private Variables Messed up.
One of the Private Variables is like a black hole. It eats the Private Variables under it. Then the bad variable has the data for the the variable under it. This is then repeated for the rest of the variables under it.
It Looks like this:
Object/Sprite
Private Variables :
test1 : 111
test2 : 222
Bad : 0
test4 : 444
test5 : 555
test6 : 666
when you run the game/debug you get this:
Object/Sprite
Private Variables :
test1 : 111
test2 : 222
Bad : 444
test4 : 555
test5 : 666
test6 : 0
You can check it out in my cap. In the "Main Layout" Object "tankbottom". The bad variable is "AngleToEnemy".
I have tried to delete it, as it is not used in any of my code right now. But when I do the game crashes on startup.
I hope someone knows how to fix this.
Link: http://www.savefile.com/projects/808655567
edit:
Sorry, I forgot that the link does not go right to the file but to the project area. The file you want is "Private Variables Messed up".
I found and fix the loop problem. Thats when I found the Object/Sprite Private Variables problem.
File Link http://www.savefile.com/files/1647496