Home • --- • Contact

How To Create A Save System Unreal Engine 4

How To Create A Save System Unreal Engine 4. Learn how to create a saving system for your game in Unreal Engine 4.

Create A New Save Game Blueprint Class

Go to Content Browser, click RMB > select Blueprint Class > under All Classes search and select SaveGame > name the new Blueprint MySaveGame. Next, open the Blueprint MySaveGame, add a new Boolean variables, call it mysave1, compile the Blueprint, make the variable public by clicking the eye next to it in the My Panel > Variables, also, the Default Value needs to be unchecked in the Details Panel, Compile and Save then close the Blueprint.

Save System Examples - Menu and Pick up / Level Completed

Let's say, for example, that your game has a level with Pick up items in it, and the player needs to collect those items in order to finish the level, to save the player progress you can add a saving system to the Pick up item Blueprint. Open the Pick up item Blueprint, in the scripting string of the Blueprint, after you have set a Branch condition, something like the player needs to collect 100 Pick up items, add a Create Save Game Object node, select MySaveGame Blueprint, add a Set mysave1 variable node with the box checked, connect the Return Value pin of Create Save Game Object with the Target pin of Set mysave1 variable node, then add to the string a Save Game to Slot node, the Slot Name set to SaveGame.

Now in the Menu, you can script a saving system to check if the player has collected the Pick up items, and if he did you can reward him/her by unlocking the next level. To do that, in the Event Graph, add to the Event Construct string, a Does Save Game Exist node, then add a Branch node, drag of the False pin, add a Create Save Game Object set it to MySaveGame Blueprint, then add a Save Game to Slot, set the Slot Name to SaveGame, add to the string a Load Game From Slot node, add a Cast To MySaveGame, promote to variable the As MySaveGame pin, call it mysavereference, connect the True pin of the Branch node with the Load Game From Slot node.

Next, you can add to the Menu buttons a lock/unlock system. In the Event Graph, add a ?IsValid node, add a Get mysavereference node and connect it with the Input Object pin of the ?IsValid node, drag of the Get mysavereference pin, add a reference to the mysave1 variable, of it drag to add a Branch node, connect the Is Valid pin of the ?IsValid node with the Branch node. Now, you can connect the entire string with an On Clicked Event of a button of your choice. The True pin of the Branch node you can connect it with an Open Level script, and the False pin with an Animation or something that say's: The Level is Locked.

Interesting articles to read on Edvog.com
Unreal Engine 4 Beginner's Guide
Unreal Engine 4 Tutorials & How To's (With Pictures & Video)
Blender 3D Beginner's Guide
GIMP Beginner's Guide

- - - - - - - - - - - -

About Edvog.com - Music, Games & Educational Resources (Information, Health, Medicine & Research) by Edvog.com

My name is Andrei Ionita, I am the creator and owner of Edvog.com website, I am also the creator and owner of all of the products associated with it, such as: music, games, videos and more...

I like to write articles about everything I find interesting in this world. The entire content found on this website is fact checked and original, when I post something, I try to double check all the information provided against all the reliable and trustworthy sources that I can find. On this website you may find content about medicine, the purpose of this type of content is simply informational and is not intended to be a substitute for professional medical advice, for questions you may have regarding your health, always seek the guidance of your doctor or other qualified health professional.

About entertainment and media - Beside, being a website owner and content writer, I'm also a game developer, music producer and video creator. I create, video games, music, animations, photos and more, this is why, from time to time, I will also post content about entertainment and media industry (a broad terminology, just to cover everything in the category)

You can check out the games made by me on Steam and on Google Play, if want to listen my music you can check out my Youtube channel, Spotify profile, iTunes profile, Google Play Music profile, etc. Who knows? Maybe your next favorite game or song will be created by me :)

If you want to support my work, you can play the games created by me, listen to my music and/or Make A PayPal Donation, whatever form of support you will choose, I thank you and wish you a nice day!

Edvog.com / AI Edvog / Andrei Ionita on the internet

YoutubeSpotifyApple MusicAmazon MusicGoogle Play MusicGoogle PlaySteamSupport My Work Make A PayPal Donation