Hello. I am learning how to make a game with a static camera that can only rotate (Something like (Darkness Within: In Pursuit of Loath Nolder). For the camera I used a pawn Blueprint, and it works fine. However, I am trying to create a save and load Blueprints, but all the tutorial out there is for a third person character or first person, and for some reason all the codes I tried did not work.
I wish to learn how to make an autosave system where the player will be back exactly where they left after exiting the game. Any ideas on how to make that happen? I appreciate any help I can get.
Thank you
You need to understand about the save game object
Basically, in your case, the player would write their location to the save game, every second or so. Then when the user runs to game again, your player knows where to start.
Itās more complicated than that, because you also need to know what doors theyāve unlocked etc, but thatās how it works.
1 Like
Sorry. It doesnāt help. It is exactly similar to all the other videos.
If I cannot change the camera, is it possible to change the material? I am using a 360 image on a screen with trigger cubes, which when double clicked, it changes the material of the sphere, making it look like The character moved. So can I save the change in materials? That would be a good start.
Thanks again.
By change I mean save the material.
Yes, you need a save game.
If the player starts in position 1 and moves to position 3 ( 2 material changes ). Next time they play, you need to start with material 3 on the screen, so they look like theyāre in the same place.
The only way you can know you need to start with material 3, is by using the save game.
But what kind of variable is a material? If I try to save a player position I should choose a transform variable, right? (The Orange one). But if I am trying to save a change in the material which variable works in the save game?
Iām still a novice, but I feel like Iām transitioning into intermediate level, so bear with me 
No problemo 
Donāt actually try and save the material. It is possible, but itās not a great way to do it.
What works much better, is to put your materials into an array, and just save the index to the array. Just an integer. 
Can you show me a bit of code where you change the material? Then I can show you how to get them in an array of the right type.
Thatās how I change materials with double clicks.

Also, how to use to put the material into an array and use it to save? if you have a video about it or a search term for me to look up that will be great. Thanks!
Ok, so this

is the critical bit. Iām assuming itās either a material or material instance?
You need to make an array of that kind of thing. With materials, getting the right kind of variable is half the battle, to get the right kind of array do this
-
Right click on that pin I outlined in red and choose āpromote to variableā.
-
Now just make that variable an array. Top right, details

- Thatās your array. Now just put your materials in it ( compile first ):
- Now your code for setting the material needs to use this array, and choose the right one
- Now itās easy. You just put the number you used for an index in the save game. Thatās it. Next time they play, you look in the save game, you can see the int index, and just load that material from the array

1 Like
Hey! Sorry for the late reply, I have been busy lately. I just tried your advice.
I tried to change to an array, then this happenedā¦
And when I compile this happensā¦
Did I do something wrong?
P.S. Just got your game ZoF 
You have to disconnect the pin. Then pull off from the array and search for āgetā ( get a copy ), which should give you what you need.
Thanks
hope you like it! - itās a bit of an acquired taste 
I saw the trailer, itās my taste. Once I finish Heavenās Vault Iām going down on that bad boy.
It worked. Now the only thing left is the last part. When I create a variable for the index number it (Array Index) I donāt know how to change the material number, and also how to save after that?
So to change the material, you just need the index of the material from the array, and put that in the code.
When you want to remember what index ( material ) they were on, you need the save game. This is my save game 101, which coincidentally has an example with an integer:
May I suggest something? I hope you wonāt mind, but is it ok if we can have a direct chat or a zoom meeting where we can communicate better? I really donāt want to bother you, but I have been facing obstacle after obstacle and all I need is someone to help me learn Blueprints.
I can make a list and communicate with you and set a day for us to chat, if thatās alright with you?
This is fine. But message me, and we can fix something up on Discord.
Youāre the best! Thank you. Iāll get back to you when I have the list ready.
Hey man. I just wanted to tell you that I finally beat your game. I was working on a horror movie which i will show in a private screening next week, in Baghdad (Yes, Iām Iraqi). Once Iām done with that, I will arrange a day for us to talk about my game.
Your game was challenging, took me a while because I am busy, and honestly, your puzzles were truly challenging. The last time my brain heated up like that was when I played āSubject 13ā.
Canāt wait to play more of your games in the future.
All the best.
Ahmed
Hey - great! 
I hope I can be of some helpā¦