This basics video tutorial shows you what persistence, aka carry over values/instances, mean in GameMaker.

These concept is pretty simple, you want to carry over values like health ammo etc. during runtime into other levels/rooms. Since GameMaker and other engines front load things, once you jump/change the room all the “old” values/assets are being deleted and the new room’s “things” are being loaded in. So how can you carry over values? You flag one or more instances as persistence, and they are not being deleted by the room jump. That’s it!


Tldr:
flag instances as persistence to no get delete by room jump


Game shown: Blade Assault

👑 Support me and get fresh game art and game maker projects every month:
https://www.patreon.com/1upindie

Follow me on:
📸 Instangram: https://www.instagram.com/1upindie
🐦 Twitter: https://twitter.com/1upIndie
💬 Discord: https://discord.gg/gvr98nb
📜 Udemy: https://www.udemy.com/course/become-a-video-game-developer-with-gms-23/ (See youtube about page for discount)

CHAPTERS
——————————————————————————————————-
0:00 Issue to be solver, carry over value (health)
0:53 Persistence is not saving/loading
2:30 Save to values in outside/persistence instance
4:15 Recap, persistence vs load/save

1up Indie

View all posts

Add comment

Your email address will not be published.