Discuss Scratch

derp_dude_21
Scratcher
12 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!!

Last edited by derp_dude_21 (July 21, 2026 19:08:29)

Griffgoldmario
Scratcher
4 posts

Save codes help

ok i can make concept art and som code maybe
derp_dude_21
Scratcher
12 posts

Save codes help

Ok tyy
Buildverse
Scratcher
3 posts

Save codes help

hello
move () steps
TOAST_french
Scratcher
1 post

Save codes help

,

Last edited by TOAST_french (July 23, 2026 17:59:15)

Buildverse
Scratcher
3 posts

Save codes help

behind you.
derp_dude_21
Scratcher
12 posts

Save codes help

Bro what
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

derp_dude_21 wrote:

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!!
An easy way to do it is to make a block that does
define add to code (thing)
set [savecode v] to (join (savecode) (join [,] (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.
Astronuat5678
Scratcher
8 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

dem_bot wrote:

An easy way to do it is to make a block that does
define add to code (thing)
set [savecode v] to (join (savecode) (join [,] (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.

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 . . .
derp_dude_21
Scratcher
12 posts

Save codes help

* bro I'll try it
Astronuat5678
Scratcher
8 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
8 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
12 posts

Save codes help

Magmalodon :0
SapphirePX
Scratcher
86 posts

Save codes help

derp_dude_21
Scratcher
12 posts

Save codes help

Here's the link to the fishing game
https://scratch.mit.edu/projects/1312812618/
Astronuat5678
Scratcher
8 posts

Save codes help

Nice!
Buildverse
Scratcher
3 posts

Save codes help

Signature

Powered by DjangoBB