# Saving System

**URL:** <https://forum.makecode.com/t/saving-system/11128>\
**Category:** Help\
**Created:** [November 29, 2021, 5:13pm UTC](https://forum.makecode.com/t/saving-system/11128 "2021-11-29T17:13:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gamemaker473](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@Gamemaker473](https://forum.makecode.com/u/Gamemaker473)\
**Post date:** [November 29, 2021, 5:13pm UTC](https://forum.makecode.com/t/saving-system/11128/1 "2021-11-29T17:13:15Z")

</div>

Hello! I wonder if there is any way to make a type of saving system to my game? Basically if the player cant get to the end, they can save the game and load back in the day after. Also wondering if I can add some sort of checkpoints so if the player dies, he respawns on the last checkpoint?

---

<div class="post-metadata">

**Author:** ![Purp13](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purp13/32/3765_2.png) [@Purp13](https://forum.makecode.com/u/Purp13)\
**Post date:** [November 29, 2021, 8:48pm UTC](https://forum.makecode.com/t/saving-system/11128/2 "2021-11-29T20:48:19Z")

</div>

> [@Arcade Advanced Stream #21 - 🏴‍☠️](https://forum.makecode.com/t/arcade-advanced-stream-21/1701):
>
> Hey Folks, Today, @jwunderl, @richard, @shakao and I continued working on a game about pirates sailing the high seas! In this stream we illustrated how to use the settings blocks to save strings, arrays, and how to reset your game appropriately when you win or lose. Also we went on a tangent about math and trigonometry. Watch the full stream here: [https://youtu.be/ogpAcdx2pZY](https://youtu.be/ogpAcdx2pZY) And the code can be found below The MakeCode Arcade Advanced stream happens every weekday at 1:00pm PST on [mixer.co…](http://mixer.com/makecode)

this should help with the saving

---

<div class="post-metadata">

**Author:** ![Purp13](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purp13/32/3765_2.png) [@Purp13](https://forum.makecode.com/u/Purp13)\
**Post date:** [November 29, 2021, 8:48pm UTC](https://forum.makecode.com/t/saving-system/11128/3 "2021-11-29T20:48:53Z")

</div>

making the check point is easy you have to add a variable called checkpoint set it to 0 and when the character overlaps with a certain tile (like a flag) the variable will be changed to 1 then have the game play a death animation and wait a curtain amount of time then check if the variable equals 1 then place the character on that tile the down side to this is when you want to make a multiple checkpoint level then the “flags” need to be different and the code gets longer and longer other than that it works

---

<div class="post-metadata">

**Author:** ![drtongue96](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@drtongue96](https://forum.makecode.com/u/drtongue96)\
**Post date:** [November 29, 2021, 8:48pm UTC](https://forum.makecode.com/t/saving-system/11128/4 "2021-11-29T20:48:59Z")

</div>

see my game Legend of Zelba that I just posted today in show and tell. I use a save everytime a ‘level’ is loaded. It was a little tricky, but doable.

---

<div class="post-metadata">

**Author:** ![personalnote](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/personalnote/32/31359_2.png) [@personalnote](https://forum.makecode.com/u/personalnote)\
**Post date:** [November 29, 2021, 10:44pm UTC](https://forum.makecode.com/t/saving-system/11128/5 "2021-11-29T22:44:42Z")

</div>

The one I used in my game Requiem, heavily utilised functions to work. It functioned very similar to @drtongue96 (sorry for ping)'s saving system.

---

<div class="post-metadata">

**Author:** ![Gamemaker473](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@Gamemaker473](https://forum.makecode.com/u/Gamemaker473)\
**Post date:** [November 29, 2021, 10:45pm UTC](https://forum.makecode.com/t/saving-system/11128/6 "2021-11-29T22:45:14Z")

</div>

Thanks bro 🙏 you really saved me mate. Thanks for the instructions for the checkpoint system too! This will help alot with my game 🙂

---

<div class="post-metadata">

**Author:** ![Gamemaker473](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@Gamemaker473](https://forum.makecode.com/u/Gamemaker473)\
**Post date:** [November 29, 2021, 10:45pm UTC](https://forum.makecode.com/t/saving-system/11128/7 "2021-11-29T22:45:18Z")

</div>

Is there any way that you could maybe show me a code of how this works? Both with the multiple and the singular. It would help so much, thanks!

---

<div class="post-metadata">

**Author:** ![Purp13](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purp13/32/3765_2.png) [@Purp13](https://forum.makecode.com/u/Purp13)\
**Post date:** [November 30, 2021, 4:01am UTC](https://forum.makecode.com/t/saving-system/11128/8 "2021-11-30T04:01:22Z")

</div>

> **[check point](https://arcade.makecode.com/06246-50759-50722-91863)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

this should work for the multiple

---

<div class="post-metadata">

**Author:** ![Purp13](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purp13/32/3765_2.png) [@Purp13](https://forum.makecode.com/u/Purp13)\
**Post date:** [November 30, 2021, 4:01am UTC](https://forum.makecode.com/t/saving-system/11128/9 "2021-11-30T04:01:24Z")

</div>

> **[check point](https://arcade.makecode.com/80359-77190-96155-74249)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

this should work for the singular
