๐ด Souls like death system [Game Maker Studio 2 | Basics]
This video tutorial shows you how to setup souls like death system in gamemaker studio.
How does it work?
You basically have a persistent controller object that saves the current experience aswell variables that save the point of death (x,y) and the experience lost plus the room where that happend. When the player dies these variables are being stored in the controller object. So everytime a new level (room) is being loaded the controller checks at the very start if there is a soul ghost (an object storing all those things) and spawns a new one at the place of death with the experience lost. If the player dies two times without picking up the ghost, the stored experience is lost for ever.
This easy but great system is a cornerstone in the souls games which give an incentive to give the player a second try to reclaim lost experience (which is called souls in their games).
โถ Gamemaker Studio: https://www.yoyogames.com/get
โถ Trial limitations: https://help.yoyogames.com/hc/en-us/articles/230407528-GameMaker-Studio-2-Trial-Limitations
๐ฎ My free game Clunky souls:
https://1up-indie2.itch.io/clunky-souls
๐ My assets:
Get some assets at itch.io https://1up-indie2.itch.io/
๐ 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