Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Help with saving system
- OldWindowsFan10
-
22 posts
Help with saving system
I'm trying to make a reward for my game that can only be achieved by completing the game, and also saves the reward so you can mess with it later. But most of the ways to make a save system is to make a code, but for my game it isn't just coins and levels, it is basically a 1 thing only. And I sure don't want anybody just using the code without completing the game, so I want it to save it automatically, but I don't know how. Is there a way?
- GIitchInTheMatrix
-
1000+ posts
Help with saving system
There are a few ways. I'm trying to make a reward for my game that can only be achieved by completing the game, and also saves the reward so you can mess with it later. But most of the ways to make a save system is to make a code, but for my game it isn't just coins and levels, it is basically a 1 thing only. And I sure don't want anybody just using the code without completing the game, so I want it to save it automatically, but I don't know how. Is there a way?
1. Using en/decoding, which can be seen on Griffpatch’s tutorial and the Scratch wiki. However, that’s limited with cloud variables.
2. If you’d like infinite space, you could create an offline saving system that works with en/decoding, giving infinite possible codes, but you’d need to use a name.
- CHKNSkratch77
-
33 posts
Help with saving system
I'd use an offline saving system. to make sure people dont modify your save, you could encode it. there is a simpler way and a more advanced way as I know of. you could just multiply all the variables by a large number like 37465 or you could set a new large number, save that in the first slot, and multiply all the saved variables by that. then when you load the save you take the first number and divide all the rest of the numbers by that to get the original values.
- Discussion Forums
- » Help with Scripts
-
» Help with saving system