hello i am a beginner and i am working on a 2d game

i am resetting the integer value to its default value but it is not working
here is my custom event of reset life and save life


here is the code of save life function which i had called in the events

here is load function

and this is where i am calling the load function

i had tried to do the keyboard where i press a key to save and reset the value but it is not working.

here you are checking if the save game exists but there is no branch after the node

also in load life if the save game doesnt exists then nothing happens so it will never be created

1 Like

thank you it worked

1 Like