Announcement

Collapse
No announcement yet.

Unreal Engine 4 Save and Load Levels and Checkpoints using Blueprints

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Images to go along with video for checkpoint system.

    If this is your first time attempting this using UE4 4.5, you may encounter problems. If so there is a simpler way to do this posted further down in the this forum. However reading this and watching video will give a good understanding of how it works.

    Here are some screenshots with more explanation.

    You will need your "Player Blueprint", "Basic Actor Blueprint" and a "Gamestate Blueprint"

    Click image for larger version

Name:	Checkpoint_0000_Gamestate.jpg
Views:	1
Size:	347.8 KB
ID:	1057359Click image for larger version

Name:	Checkpoint_0001_PlayerBlueprint.jpg
Views:	1
Size:	333.4 KB
ID:	1057360Click image for larger version

Name:	Checkpoint_0002_ComponentsTab_CheckpointSystem.jpg
Views:	1
Size:	268.7 KB
ID:	1057361Click image for larger version

Name:	Checkpoint_0003_EventGraph_CheckpointSystem.jpg
Views:	1
Size:	418.4 KB
ID:	1057362Click image for larger version

Name:	Checkpoint_0004_ConstructionScript_CheckpointSystem.jpg
Views:	1
Size:	324.8 KB
ID:	1057363Click image for larger version

Name:	Checkpoint_0005_EditorWindow.jpg
Views:	1
Size:	345.6 KB
ID:	1057364

    Last edited by Isaac Nichols; 10-18-2014, 09:42 AM.
    Isaac Nichols
    Game Developer & Music Producer - Threaded Pixel Studios
    Currently working on Drones & Ruins a Sci-Fi twin-stick shooter.

    Comment


      #17
      @Isaac - Thanks dude! You're my personal savior.

      Comment


        #18
        Hey Isaac. I recently made the upgrade to 4.5 and the whole system doesn't seem to work anymore. Will this update fix that?

        Comment


          #19
          Originally posted by Penhoat View Post
          Hey Isaac. I recently made the upgrade to 4.5 and the whole system doesn't seem to work anymore. Will this update fix that?
          I haven't updated to 4.5 yet. I guess I will find out soon when it happens. Thanks for the heads up, maybe they changed something in Unreal this time around.
          Isaac Nichols
          Game Developer & Music Producer - Threaded Pixel Studios
          Currently working on Drones & Ruins a Sci-Fi twin-stick shooter.

          Comment


            #20
            Subscribed to your Youtube channel!
            Check my working title: The Locked Room here: https://forums.unrealengine.com/show...he-locked-Room

            Comment


              #21
              @starseeker, Thanks
              Isaac Nichols
              Game Developer & Music Producer - Threaded Pixel Studios
              Currently working on Drones & Ruins a Sci-Fi twin-stick shooter.

              Comment


                #22
                Thanks Isaac. I'm looking forward to your findings. Personally I think it has something to do with the player tags, when I walk passed the checkpoint it doesn't display the text either. It simply looks like it doesn't recognise the player anymore.

                Edit: Just checked your new updated version. Tried that out in 4.5. Same story, doesn't seem to work either
                Last edited by Penhoat; 10-15-2014, 04:43 PM.

                Comment


                  #23
                  Update to the Update Checkpoint system!

                  Hi everyone, you will all make me smarter with using Unreal Engine. I finally got 4.5 downloaded and tested out the system in a new game. Tags still work the problem is having the blueprints in gamestate. Gamestate is not necessary and all code can be placed in your character blueprint. I may make an updated video but here is a screenshot for now. It's like super simple. But at least we learn along the way

                  So ditch the code in gamestate and whatever you added in your player character. Basically all that needs to be done is at "begin play" set a vector variable that gets actor location. Then "set actor location" when getting the variable at the end of your players death sequence.

                  Sorry for any confusion, but I will stay on top of this stuff on any findings so we learn together. Good thing is it was easy to remedy because once I tried to recreate the system casting in gamestate to set locations and what not were not available to choose from in my cast node.

                  I wasn't able to test it on my game yet because there are some things I need to fix when transitioning to 4.5. This common but will be worth it once its all up and running. But at least everyone else should be good to go now.

                  SUPER EASY NOW! Only took me half a year to figure it out


                  Character Blueprint
                  Click image for larger version

Name:	charbpcheckpoint.png
Views:	1
Size:	237.8 KB
ID:	1057869

                  Replace the SPACEBAR input with your series of nodes leading to player re-spawn.

                  Checkpoint Actor Blueprint
                  Click image for larger version

Name:	actorbpcheckpoint.png
Views:	1
Size:	232.0 KB
ID:	1057870

                  The Checkpoint Actor Blueprint is pretty much the same.
                  Last edited by Isaac Nichols; 10-18-2014, 09:19 AM. Reason: Updating info
                  Isaac Nichols
                  Game Developer & Music Producer - Threaded Pixel Studios
                  Currently working on Drones & Ruins a Sci-Fi twin-stick shooter.

                  Comment


                    #24
                    Amazing Isaac! Thanks a lot, I will check it out immediately. The checkpoint actor bp from your updated version I presume? Anyway I'll check it out!

                    Comment


                      #25
                      Great! Strange thing is I updated my game to 4.5 and the old way seems to be working fine. Maybe because I have compiled the engine from source? Who knows, but at least there are options now if there are any problems.
                      Isaac Nichols
                      Game Developer & Music Producer - Threaded Pixel Studios
                      Currently working on Drones & Ruins a Sci-Fi twin-stick shooter.

                      Comment


                        #26
                        Originally posted by Isaac Nichols View Post
                        Great! Strange thing is I updated my game to 4.5 and the old way seems to be working fine. Maybe because I have compiled the engine from source? Who knows, but at least there are options now if there are any problems.
                        Hey Isaac I'll be looking in how to make the original system work again. This system works, but just seems to be resetting me to an old location, however my character doesn't reset. It's just a location reset, and not like your save system worked, which was a perfect system (even if it was complicated). I've got a friend who is also able to use the old system, so I'll just restart from scratch with the save system.

                        Comment


                          #27
                          @Penhoat. Its reseting you to your location that was grabbed at begin play. Maybe there is an issue with the checkpoint actor blueprint. Make sure when your player overlaps the trigger volume you are setting the vector variable you casted to from your character blueprint. Also check to see if your character has tag listed and it is the name given in checkpoint blueprint are the same.
                          Isaac Nichols
                          Game Developer & Music Producer - Threaded Pixel Studios
                          Currently working on Drones & Ruins a Sci-Fi twin-stick shooter.

                          Comment


                            #28
                            Originally posted by Isaac Nichols View Post
                            @Penhoat. Its reseting you to your location that was grabbed at begin play. Maybe there is an issue with the checkpoint actor blueprint. Make sure when your player overlaps the trigger volume you are setting the vector variable you casted to from your character blueprint. Also check to see if your character has tag listed and it is the name given in checkpoint blueprint are the same.
                            Well the location set is fine, however when my character dies, he plays a death animation, which keeps going on when I respawn at the other checkpoint. With your original system it worked perfectly. He really reset to it's original state.

                            Comment


                              #29
                              @Penhoat, I'm not sure if I understand but is it possible to add delay that is set to the same amount of time of your death animation before setting location?
                              I sent you a PM also.
                              Isaac Nichols
                              Game Developer & Music Producer - Threaded Pixel Studios
                              Currently working on Drones & Ruins a Sci-Fi twin-stick shooter.

                              Comment


                                #30
                                Hey iv followed this video and part 2, however whenever i walk into a checkpoint it says "reset" and then again when i walk into a different one
                                when the player is destroyed *dies* he respawns at the original playerstart location of the game
                                anyone else have this problem or know what it could be?
                                *Can supply blueprint pictures if required*

                                it just doesnt seem to acknowledge the checkpoint trigger/ playerstart change
                                Last edited by LDodds; 10-18-2014, 09:12 PM.

                                Comment

                                Working...
                                X