Discuss Scratch

WeisWeis10
Scratcher
2 posts

Help with Saving

How do i Make a Saving System for My Police Game?, Because i want it to save even when you go out of the game/Website and its still there when you join back i want to make a Skin Shop.
MineTurte
Scratcher
500+ posts

Help with Saving

WeisWeis10 wrote:

How do i Make a Saving System for My Police Game?, Because i want it to save even when you go out of the game/Website and its still there when you join back i want to make a Skin Shop.
Do you mean like a save code?

15+ (not revealing age) girl. Pronouns are she/her.
Host of The Pi Counsel. Comment in studio to join.

Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well

If I helped you out consider following Juni-Bug!


Select this + shift + down arrow = view rest of signature

This is JuniperActias. AKA Moth mommy.





Signature gradients here





If you found this secret; reply with ‘uwu’ with absolutely no context













kingKASEtheGREATalt
Scratcher
100+ posts

Help with Saving

WeisWeis10 wrote:

How do i Make a Saving System for My Police Game?, Because i want it to save even when you go out of the game/Website and its still there when you join back i want to make a Skin Shop.
theres two ways to go about it,

save code:
add (join [(score)] (join [|] (join [(something else)] (join [|] [a third thing])))) to [list v]
(note: you may want to look into encrypting if you're going this route to make it less hackable)

then decrypting would go like this:

ask [input your save code:] and wait
split (answer) on [|]
set [ score] to (item ( 1) of [list split] :: list)
set [ something else] to (item ( 2) of [list split] :: list)
set [ a third thing] to (item ( 2) of [list split] :: list)
(you can get the split block by following this tutorial)


saving to the cloud: (you can only save for so long until you run out of space, and have to encrypt username and other data)
set [☁ savedData] to (join [(☁ savedData)] [(encrypted user data)])

and decryption depends on the encryption, this is one way to encrypt and decrypt

Last edited by kingKASEtheGREATalt (March 28, 2024 00:02:46)


Powered by DjangoBB