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

**URL:** <https://forums.unrealengine.com/t/hello-i-am-a-beginner-and-i-am-working-on-a-2d-game/2265663>\
**Category:** Game Production\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [January 8, 2025, 8:37am UTC](https://forums.unrealengine.com/t/hello-i-am-a-beginner-and-i-am-working-on-a-2d-game/2265663 "2025-01-08T08:37:41Z")\
**Posts on this page:** 5\
**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 8, 2025, 8:37am UTC](https://forums.unrealengine.com/t/hello-i-am-a-beginner-and-i-am-working-on-a-2d-game/2265663/1 "2025-01-08T08:37:42Z")

</div>

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

 ![BP_MyGame_State_EventGraph_00000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/d/6ed3b5402e38bfb33a1cc9387be6bd586f89aba2.png)  
here is the code of save life function which i had called in the events  
 ![2d_Game_Level3_Save_life_00000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/c/fec2bd29b7391fb0601e2c3053fce36fa476138e.png)  
here is load function  
 ![2d_Game_Level3_Load Life_00000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/e/37e45ed9173388b6b58c6f1fc08db90d7779bf3c.png)  
and this is where i am calling the load function  
 ![2d_Game_Level3_EventGraph_00000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/e/dbea742253fff22f583ff9617f1d0b68242d3c87.png)

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

 ![2d_Game_Level3_EventGraph_00001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/d/17d0de8e467739e19c448aaf3345fc8b4595fcee.png)

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [January 8, 2025, 12:29pm UTC](https://forums.unrealengine.com/t/hello-i-am-a-beginner-and-i-am-working-on-a-2d-game/2265663/2 "2025-01-08T12:29:22Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/6/d7630672e7b62271d4752fc26c60706fd87f6a5c.png)

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

---

<div class="post-metadata">

**Author:** ![eldany.uy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eldany.uy/32/821920_2.png) [@eldany.uy](https://forums.unrealengine.com/u/eldany.uy)\
**Post date:** [January 8, 2025, 12:31pm UTC](https://forums.unrealengine.com/t/hello-i-am-a-beginner-and-i-am-working-on-a-2d-game/2265663/3 "2025-01-08T12:31:09Z")

</div>

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/7/817ed7c353e96f40910668a99fd79e932838c0e1.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 9, 2025, 2:49am UTC](https://forums.unrealengine.com/t/hello-i-am-a-beginner-and-i-am-working-on-a-2d-game/2265663/4 "2025-01-09T02:49:53Z")

</div>

thank you it worked

---

<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 8, 2025, 2:50am UTC](https://forums.unrealengine.com/t/hello-i-am-a-beginner-and-i-am-working-on-a-2d-game/2265663/5 "2025-02-08T02:50:47Z")

</div>

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