How To Save And Load Player's Location - Unreal Engine 4 Tutorial - YouTube Guys please help, I was following Matt tutorial on how to save and load player location, now that works, but i found 1 problem.
When i save or auto save the location on map 1 when i reach destination to go to open map 2 it doesnt spawn me on the map, its like its spawning me under the map and i cant move there is no character (this happens on every map , only when i save location) but when i do not save location then then my character normally spawns on any level, ofc if i saved location on level 1 and then click load game it will spawn me on level 1 on that exact same location but when i go to level 2 or 3 when i clicked save it wont spawn me.
To sum up, when i click save location on map 1, when i want to change level it wont spawn my character on level 2 or map 2, but when i dont save location and when i reach destination to change levels and when i enter in the portal that teleports me to level 2 my character spawns normally
The only problem is when I try to change levels it won’t spawn me on the second level when I saved the location on the first level. Maybe if I use delete the game from slot node in a level blueprint will solve the problem partially, but if I die on the second level and press continue it’s going to start from the start, not from the location I saved
Same thing happens, i can load the player location but my character wont spawn on second level when I save player location on the first level Thats the problem The only time when my character spawn on level 2 after i finish level 1 is when i add delete game in slot in level 2 blueprint
Make it so that you DO save the player location, and then load it on spawn. Then show me the code.
It’s a little hard to debug if you’re showing me stuff you’re not using…
EDIT: Sorry, not very helpful. Lemme take another look
Ok, I took another look. The code basically looks ok, but are you sure you’re spawning the right player? If it’s the default player, it won’t load the transform.
When the level starts, F8 and take a look at the world outliner. Is it the player you expect?
- YouTube In this video you can see the problem ( I’m using all the nodes I send you already).
On this video you can see that’s everything normal, that’s because In this video i didn’t save player location. I just went straight from the start to the portal without saving player location.
Ty so much for trying to help me, but this didn’t solve the problem, I think saving and loading player location is for 1 level such as open world game but if you have more levels I think checkpoint is better ?
I don’t know what sort of game you have. Does saving the player location on level 1 and then trying to put the player in that location on level 2 make any sense?