Make A Character Switch Angles

Discussion in 'How Can I...?' started by Nelson97, Jul 8, 2018.

  1. Nelson97

    Nelson97 Boxer

    Joined:
    Jul 4, 2018
    Messages:
    13
    Likes Received:
    1
    Hi, I have a character that flies left and right when you tap on the buttons.
    When going left the characters angular velocity has to be set to -1 and for left 1.

    Now my problems are the following;

    - It keeps adding up to the angle, even if it's on replace. (makes it keep turning)
    - When I release the button, I want it to stay on that angle (right -1 and left 1).

    I've been trying this for some time now and simply don't know how to fix this, can someone please help me out so I proceed making my game?

    Thank you a lot!

    Kind regards,
    Nelson
     

Share This Page