0
$\begingroup$

I need help keeping score when I reset the scene.

This is the game file link. https://www.blendswap.com/blends/view/92672

My score shouldn't reset when resetting scene. It should stay when scene resets.

$\endgroup$
0
$\begingroup$

you can use a Game actuator, load global dict and save global dict, i dont know how this actuator works. i think you'll need little bit of python to do this. google for "bge global-dict". there are a few tutorials on youtube. or you can just create a file. with open("file", "w") as f: f.write() f.close(), save the file a openit up from other scene. with open("file", "r") as f: f.readLine() f.read()... and so. It's basically the same thing. A dict that blender handles or a "dict" you handle.

$\endgroup$
  • $\begingroup$ This doesn't help me. $\endgroup$ – scinceman96 Nov 6 '18 at 14:36
  • $\begingroup$ If the right answer does'nt help you. You must be some special kind of common factor. Good luck! $\endgroup$ – Javier Nov 7 '18 at 2:39
  • $\begingroup$ I want the game to do it all itself $\endgroup$ – scinceman96 Nov 8 '18 at 3:55
  • $\begingroup$ I see, so ask to your game how to do it. $\endgroup$ – Javier Nov 8 '18 at 4:27
  • $\begingroup$ the game should do just what you said above $\endgroup$ – scinceman96 Nov 8 '18 at 15:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.