Search Unity

Resolved Unable to move character through doors

Discussion in 'Physics' started by DMXrated, Jun 5, 2023.

  1. DMXrated

    DMXrated

    Joined:
    Jan 8, 2021
    Posts:
    32
    I am creating a game based on Earthbound, and I am unable to move the current player character through a door.

    Several years ago, I had attempted to re-create part of Earthbound, and my brother created a script to apply to doors. They work properly there, but in the current build of my real project, they do not work even when I attach door.cs to a staircase entrance.

    Here are a couple of screenshots of the two rooms I am trying to move my character between:

    Screenshot 2023-06-05 08.10.27.png Screenshot 2023-06-05 08.14.38.png

    And also attached is the C# script that I applied to both ends of the staircase.
     

    Attached Files:

  2. DMXrated

    DMXrated

    Joined:
    Jan 8, 2021
    Posts:
    32
    Resolved.