Forum begins after the advertisement:

 


[Part 5] Fixing oversized player + zoomed camera after scene transition

Home Forums Video Game Tutorial Series Creating a Metroidvania in Unity [Part 5] Fixing oversized player + zoomed camera after scene transition

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #18189
    Terence
    Level 31
    Keymaster
    Helpful?
    Up
    1
    ::

    @_mahito shares a very helpful tip on our YouTube video.

    I somehow got a painful issue with new loaded scenes being disproportionated, with big player and zoomed out camera. I replayed third times the complete video section about scene transition and couldn’t manage to find a solution.

    I just figured out after tinkering every camera and player options that my player gameobject’s z position was increased by the SceneTransition gameObject (that was set on Z = -10).

    Therefore, the CameraFollowScript was adding -10 to the offset. So instead of having both 0 and -10 for player/camera’s Z position, i got -10 and -20. So if you guys run into this same issue, don’t forget to reset every of your SceneTransition gameobject’s Z position with your player’s one.

    Also, really thank you for sharing your amazing tutorials, it is a pleasure to learn from your knowledge !

      1 anonymous person
    has upvoted this post.
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: