An Easy Guide to Save and Load Your Character in UE4

Поділитися
Вставка
  • Опубліковано 12 жов 2021
  • #UnrealEngine #GameDevelopment
    In today's video we'll cover an easy way to save information between play sessions and loading them on command by using Save Game Objects. We'll also script the ability to save the game from a menu. This project was made to show how to save multiple variables for one character inside of one level but can be expanded upon easily.
    Oh hey there, you found me on UA-cam. So come learn how to make a video game with me while using what I think is the most beginner friendly engine in the business.
    I know when I first started learning how to create a video game I didn't know where to start. It's a pretty daunting task to learn all of it so I wanted to make videos that I wish I had access to at that time. Learning should be simple and fun, so that's what my tutorial videos will aim to be! Please help support the channel for free by liking and commenting on the video and by subscribing to the channel! It doesn't hurt anyone and it helps out a ton!
    Be sure to let me know what topics you would like covered in the future!

КОМЕНТАРІ • 26

  • @treborcxviii
    @treborcxviii 10 місяців тому

    Following this tutorial I managed to jerry-rig a character customization system into my game. Thanks a million for this tutorial!

  • @butterysmooth5808
    @butterysmooth5808 2 роки тому +1

    Keep chugging man. Good content!

    • @JoeVonD
      @JoeVonD  2 роки тому +1

      Thank you 😁😁

    • @MaxStudioCG2023
      @MaxStudioCG2023 Рік тому

      @@JoeVonD hei man where is the second part of this? ...where star level with same stats we left

  • @engreidosperotraviesos5044
    @engreidosperotraviesos5044 2 роки тому +5

    and how do you destroy the actors when you load the game? so that the collected coins do not appear, you can make it possible to delete your saved game

  • @engreidosperotraviesos5044
    @engreidosperotraviesos5044 2 роки тому +2

    you are going to continue with this save series

  • @danliviu75
    @danliviu75 2 місяці тому

    Great tutorial! How can destroy the actors when you load the game? so that the collected coins do not appear, you can make it possible to delete your saved game?

  • @HixxyDubz
    @HixxyDubz 4 місяці тому

    hi the issue with this particular tutorial is you have already set up the integer variable before showing us how to do that so we can follow along this tutorial, this video is fine if it were apart of a series but on its own its hard to follow since for people like myself who are new to this, we dont know where to start when setting up the very first part of the tutorial that you glossed over.

  • @noopsmedia3706
    @noopsmedia3706 2 роки тому

    Took me back with the Super Mario 😂

  • @Hutterhut
    @Hutterhut 2 роки тому +1

    Hey man i followed the tutorial step by step ,but for some reason when i press load game from the main menu it crashes,can you help me please?

  • @atomic6711
    @atomic6711 2 роки тому

    thanks

  • @magegames6202
    @magegames6202 Рік тому

    i have a custom character system that uses integers to set what head body accessories to use do i need a seperate save for each integer can i really not put multiple in 1 save slot?

  • @beatsbylira3215
    @beatsbylira3215 2 роки тому +1

    You need to create an patreon page, it’ll support you financially and helps the subscribers.

    • @JoeVonD
      @JoeVonD  2 роки тому +1

      You’re 100% right haha. I don’t know how many people would be interested in supporting me financially but it’s worth a shot. I’ll probably publicly announce a Patreon and Discord in a video next week.

  • @hazemsy2797
    @hazemsy2797 Рік тому

    what if i have 3 levels ? and the player finished first level and now is in the 2 level?

  • @chrystalphoenixassassine3204
    @chrystalphoenixassassine3204 2 роки тому +1

    thx nice tut, when i finish the level and go to the next one i spawn somewhere different from the player start

    • @JoeVonD
      @JoeVonD  2 роки тому +4

      Hey there! For multiple levels you’ll need another Boolean called MovePlayer? Set to true from the menuload event. And set that Boolean to false after you set the ActorTransform in the load macro. That should prevent him from moving in other levels after loading. This tutorial was only meant for a single level so we didn’t delve into that yet.

    • @chrystalphoenixassassine3204
      @chrystalphoenixassassine3204 2 роки тому

      @@JoeVonD Thank you for your prompt reply. I'll try it :)

    • @JoeVonD
      @JoeVonD  2 роки тому +1

      😁

    • @JoeVonD
      @JoeVonD  2 роки тому +3

      Oh, I forgot to mention. Have a branch check the new MovePlayer Boolean in the load macro before the player actor transform is set. So the character is only moved if it’s set to true. And it’ll only be true once because it’s set to false after the character is moved. Kinda important haha 😅

  • @allins8759
    @allins8759 5 місяців тому

    I have a question for you:
    Let's imagine that your character has a different material wich is a outfit you unlock when you finish the level.
    Now you can choose between 2 optiones to set material to the mesh of your character.
    How do you save and load the current material of your mesh before you leave the game and recover it when you load the level when re enter the game?
    please tutorial on this will be salvation for me.

    • @JoeVonD
      @JoeVonD  5 місяців тому

      That’s actually a little easier than saving the status of objects in the level. Because for materials, you’d just need to save the material and it’s custom parameters with any save game system you have in place (or make one based on a tutorial) and then when you open the game again, load the save file with the material and apply the saved custom parameters, and apply that to your character at begin-play. The only tricky part is receiving that data from from the save file and sending it to your player character, but that can be done with the right references or a BPI.

    • @allins8759
      @allins8759 5 місяців тому

      @@JoeVonD Please could you make a video tutorial. I work in ue 4.25 version of the engine, An easy tutorial on this lets say:
      You have the mannekin grey suit and you have a red material suit that you can change in the game.
      Lets say you exit the game with the red material suit so when you re open the .exe game the mannequin appears with the red material suit you left.
      A video tutorial of this will be great for begginners to make and easy customization system and will help me a lot. Please make do me that favor I'm desperate!

    • @JoeVonD
      @JoeVonD  5 місяців тому

      @@allins8759 I don't really have much time now a days to make tutorials. It's a great video idea but I don't think I can make one within the coming weeks.