# hello i am beginner and i am making 2d game

**URL:** <https://forums.unrealengine.com/t/hello-i-am-beginner-and-i-am-making-2d-game/2263785>\
**Category:** Game Production\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [January 7, 2025, 5:08am UTC](https://forums.unrealengine.com/t/hello-i-am-beginner-and-i-am-making-2d-game/2263785 "2025-01-07T05:08:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AiBoleche](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AiBoleche](https://forums.unrealengine.com/u/AiBoleche)\
**Post date:** [January 7, 2025, 5:08am UTC](https://forums.unrealengine.com/t/hello-i-am-beginner-and-i-am-making-2d-game/2263785/1 "2025-01-07T05:08:45Z")

</div>

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

 ![BP_MyGame_State_EventGraph_00002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/3/ee356e2749dea08623973fb45f6372979b2fe206.png)  
it is a custom event where i am calling game load function  
 ![WB_MyGameInstance_EventGraph_00000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/9/8991363acfb53d3b19fef73045105200ae533fa7.png)  
here is my game load function  
 ![WB_MyGameInstance_game Load_00000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/e/dae5363a4cc621ea9abef544686715f926bccb7e.png)  
it is load game function which i am not calling it was working just fine but didn’t know what happen  
 ![WB_MyGameInstance_load Game_00000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/d/3ed2e4d6767aa4720292e0c8dbfef4448b874bfb.png)  
and here is my save game function  
 ![WB_MyGameInstance_Save_Game_00000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/b/fbbb8560977a2d973fe64b029fcef97fc60e7659.png)

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

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 7, 2025, 8:06am UTC](https://forums.unrealengine.com/t/hello-i-am-beginner-and-i-am-making-2d-game/2263785/2 "2025-01-07T08:06:01Z")

</div>

This should assign to your ‘save ref’ variable

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/e/5ce2de5dfa58f736ecc6017134b297c8ff0722fc.png)

Also

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/0/62087208d11e90c33e7f1bc23d16c622e25a557e.png)

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/2/72228ba06c91c5d4c962bdea9ba16ce2494a8402.png)

---

<div class="post-metadata">

**Author:** ![AiBoleche](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AiBoleche](https://forums.unrealengine.com/u/AiBoleche)\
**Post date:** [January 7, 2025, 8:11am UTC](https://forums.unrealengine.com/t/hello-i-am-beginner-and-i-am-making-2d-game/2263785/3 "2025-01-07T08:11:51Z")

</div>

okay thank you

---

<div class="post-metadata">

**Author:** ![AiBoleche](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AiBoleche](https://forums.unrealengine.com/u/AiBoleche)\
**Post date:** [January 7, 2025, 8:39am UTC](https://forums.unrealengine.com/t/hello-i-am-beginner-and-i-am-making-2d-game/2263785/5 "2025-01-07T08:39:22Z")

</div>

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

 ![WB_MyGameInstance_Save_Game_00002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/7/7c7486eab8cb49af27736180e894631e991d475f.png)

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

---

<div class="post-metadata">

**Author:** ![AiBoleche](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AiBoleche](https://forums.unrealengine.com/u/AiBoleche)\
**Post date:** [January 7, 2025, 8:50am UTC](https://forums.unrealengine.com/t/hello-i-am-beginner-and-i-am-making-2d-game/2263785/6 "2025-01-07T08:50:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 7, 2025, 8:53am UTC](https://forums.unrealengine.com/t/hello-i-am-beginner-and-i-am-making-2d-game/2263785/7 "2025-01-07T08:53:15Z")

</div>

You might as well use the name parameter

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/a/fea4687ca78a2e9ae36ec0ae4be5fdb84fd4c6b3.png)

Also, the cast goes here

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/2/fa228e38b562f42b48223a1044171b4c49f02e09.png)

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

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 7, 2025, 8:57am UTC](https://forums.unrealengine.com/t/hello-i-am-beginner-and-i-am-making-2d-game/2263785/8 "2025-01-07T08:57:50Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/8/f18cdc34ebe4579e352f948d134f575b2827daa5.png)

---

<div class="post-metadata">

**Author:** ![AiBoleche](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AiBoleche](https://forums.unrealengine.com/u/AiBoleche)\
**Post date:** [January 7, 2025, 9:16am UTC](https://forums.unrealengine.com/t/hello-i-am-beginner-and-i-am-making-2d-game/2263785/9 "2025-01-07T09:16:41Z")

</div>

thank you

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [February 6, 2025, 9:17am UTC](https://forums.unrealengine.com/t/hello-i-am-beginner-and-i-am-making-2d-game/2263785/10 "2025-02-06T09:17:26Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
