Search Unity

  1. New Unity Live Help updates. Check them out here!

    Dismiss Notice

How can I Make It Where My Character Doesn't Flip?

Discussion in '2D' started by JVGameDev, Nov 8, 2015.

  1. JVGameDev

    JVGameDev

    Joined:
    Oct 5, 2015
    Posts:
    137
    Hi! I was wondering how I can make it where when my player walks off an edge, he doesn't start rotating and flipping, his rotation stays at 0?
     
  2. Shaquita

    Shaquita

    Joined:
    Jan 28, 2014
    Posts:
    37
    What are your rigidbody2d settings?
    Under constraints tick 'Z'
     
  3. JVGameDev

    JVGameDev

    Joined:
    Oct 5, 2015
    Posts:
    137
    Oh ya! Sorry, Im still a bit of a noob
     
  4. JVGameDev

    JVGameDev

    Joined:
    Oct 5, 2015
    Posts:
    137
    By the way, I also got 2 questions for ya. How can i make it where I can only jump when touching the platform. And when my character jumps, he basics teleports 10 pixels up then floats down with gravity, and I am * the jump by Delta Time.
     
  5. Shaquita

    Shaquita

    Joined:
    Jan 28, 2014
    Posts:
    37
    No worries, i am too.
    You gotta start somewhere though :)

    Unity provides GREAT tuts on how to develop your character in the engine.
    http://unity3d.com/learn/tutorials/modules/beginner/2d/2d-controllers?playlist=17093
    That tut will show you how to:
    Jump/Run/Animate/etc. Very good tut, i think the scripting of the jumping is alittle past the midway point the video.
     
unityunity