Discuss Scratch
- derp_dude_21
-
Scratcher
11 posts
Save codes help
Helloo!!!
I need help with a fishing game that holds xp levels, rods, money, baits, inventory fish KG, money value, and name. I also might add a bestiary but that's still an idea. Sorry if I seem like im asking a lot. I hope you guys can help!!
I need help with a fishing game that holds xp levels, rods, money, baits, inventory fish KG, money value, and name. I also might add a bestiary but that's still an idea. Sorry if I seem like im asking a lot. I hope you guys can help!!

Last edited by derp_dude_21 (July 21, 2026 19:08:29)
- TOAST_french
-
Scratcher
1 post
Save codes help
,
Last edited by TOAST_french (July 23, 2026 17:59:15)
- defaultscratchcats
-
Scratcher
56 posts
Save codes help
we kinda need to know what exactly we are saveing before we can give you a format
- dem_bot
-
Scratcher
1000+ posts
Save codes help
Helloo!!!An easy way to do it is to make a block that does
I need help with a fishing game that holds xp levels, rods, money, baits, inventory fish KG, money value, and name. I also might add a bestiary but that's still an idea. Sorry if I seem like im asking a lot. I hope you guys can help!!
define add to code (thing)and use that to plop everything back to back. And then you can use the array to list block from my Toolbox Sprite to put everything in a list and then you can just set the vars to the list items.
set [savecode v] to (join (savecode) (join [,] (thing))
- Astronuat5678
-
Scratcher
6 posts
Save codes help
Ok, I just found this, I can maybe help with Xp and rod designs and buffs/strengths
- mrgibbles10
-
Scratcher
26 posts
Save codes help
An easy way to do it is to make a block that doesdefine add to code (thing)and use that to plop everything back to back. And then you can use the array to list block from my Toolbox Sprite to put everything in a list and then you can just set the vars to the list items.
set [savecode v] to (join (savecode) (join [,] (thing))
This works great as a simple saving system. Decoding is also quite easy.
Note that this system works with a slight adjustment of the previous code (switch order of “.” and “output” in join block):
define add to code (thing)
set [savecode v] to (join (savecode) (join (thing) [.])
Here's the simple decoder:
variable(index)
variable(output)
define decode (code)
set (output) to []
repeat until <(letter (index) of (code)) = [.]>
set (output) to (join (output) (letter (index) of (code)))
change (index) by [1]
end
change (index) by [1]
This allows you to easily set your game state from the save code:
when green flag clicked
set (index) to [1]
ask [Enter code] and wait
decode (answer)
set (money) to (output)
decode (answer)
set (fish) to (output)
and so on . . .
- Astronuat5678
-
Scratcher
6 posts
Save codes help
https://scratch.mit.edu/projects/1366581426/ This is some designs for the fishing rods, I haven’t come up with any stats for them yet, but they are pretty self explanatory.
- Astronuat5678
-
Scratcher
6 posts
Save codes help
I have some ideas for extra content I would like to run by you. So basically there are these elemental fish, and if you catch enough of one type, you can buy the corresponding elemental rod, and summon the corresponding elemental shark. This may be to much, but just a quick idea I had.
- derp_dude_21
-
Scratcher
11 posts
Save codes help
Here's the link to the fishing game
https://scratch.mit.edu/projects/1312812618/
https://scratch.mit.edu/projects/1312812618/







