hello i am beginner and i am making 2d game

i am making a game where i had add load and save location it was working just fine but now it is not working
it is my custom event where i am calling and saving the location of player


it is a custom event where i am calling game load function

here is my game load function

it is load game function which i am not calling it was working just fine but didn’t know what happen

and here is my save game function

can someone show me the mistake which or where i am making

i had tried to add the load game function in menu load game custom event but it gives me error

Blueprint Runtime Error: “Accessed None trying to read property save Ref”. Node: Set Actor Transform Graph: load Game Function: Load Game Blueprint: WB_MyGameInstance

1 Like

This should assign to your ‘save ref’ variable

Also

You only need to create the save game if its not already there. With this code, if it is there, it will be overwritten. You might want to look into the node

okay thank you

1 Like

(post deleted by author)

done some changes in save game but when i try to load the game it gives me error

Blueprint Runtime Error: “Accessed None trying to read property save Ref”. Node: Set Actor Transform Graph: load Game Function: Load Game Blueprint: WB_MyGameInstance

i just don’t know but it started working again thank you for your help

1 Like

You might as well use the name parameter

Also, the cast goes here

There’s no point in casting a new save game, its already the right type.

thank you

1 Like