I need a highscore-system for my game (Space Invaders…).
I used the basic idea used in this file:
(pressing Q and 1 will save the property, pressing W and 2 will load the property [the prop in the game can be changed with spacebar]).
The script creates a .bgeconf textfile [relativ to the .blend] which SHOULD hold the highscore.
It works pretty fine, the problem though is, that the textfile that this script creates actually doesn’t save the property. It always saves “0”.
In conclusion: as long as you don’t quit Blender, the script works just fine (for whatever reason…?).
But as soon as you quit Blender and reopen it the highscore is lost - and THIS shouldnt happen!
I’m not very good in describing problem, it would be nice if you would make yourself a picture of this problem…
Please note: I’ve got no Python knowledge. Therefore I’m already overwhelmed by these very few lines of script.
Thanks in advance!