Forum begins after the advertisement:

[Part 12] Player does not move on LoadSave

Home Forums Video Game Tutorial Series Creating a Farming RPG in Unity [Part 12] Player does not move on LoadSave

Viewing 1 post (of 1 total)
  • Author
  • #11600
    Jonathan Teo

    If you have been following Part 12, and tried to load the save in the Player Home, you would realise that the character gets stuck and does not move.

    The Load Game button on the screen was just for debugging purposes, and in the subsequent parts, we made it so that the game will only be loaded from the title screen.
    The problem is caused by OnLocationLoaded() not running when you load the same scene. Simply call the function when the button is pressed and it should be fixed.

    Alternatively, you can add this at the end of the function SceneTransitionManager.ChangeScene() and it will work:

    if(locationToSwitch == currentLocation)
        playerPoint.GetComponent<CharacterController>().enabled = true;
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Go to Login Page →

Advertisement below: