Question by
Dancetrap · Aug 14, 2021 at 01:51 PM ·
scene-loadingtransform.positioncheckpointreset-position
How to reset the Player Position when loading a different scene
Hello!
So, I have a checkpoint system in my game, meaning that if you walk or touch a certain thing, then it'll save your position (obviously). And when you reach the end goal of the level, you'll move onto the next scene. The problem I'm having is that when the player hits the end goal, it'll move onto the next scene, but the position is from the last saved checkpoint from the previous level. What I need your guys' help with is how to reset the player position so when a different scene is loaded, it'll start somewhere different.
Here are the C# scripts I'm using for this project.
gamemaster.png
(31.8 kB)
checkpoint.png
(30.0 kB)
Comment
Your answer
