Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Feature Request Help with player’s behaviour

Discussion in 'Input System' started by nsekewangjeanchristophe, Nov 5, 2022.

  1. nsekewangjeanchristophe


    Oct 22, 2022
    hi I’ve created two buttons to change the running direction of the player to the left for the first button and to the right for the second. I coded my player’s jump behaviour with Input.GetButton so I need to touch the screen to jump. The problem is when I touch the button the player jumps and changes his running direction. I want him to change his running direction without jumping. Does someone have an idea on how to implement this ? I can send the code I’be written if you need.