Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

I need some help with inputs.

Discussion in 'PSM' started by CQCSnake, Apr 30, 2014.

  1. CQCSnake

    CQCSnake

    Joined:
    Oct 31, 2013
    Posts:
    5
    Hello! I put together a small FPS game in Unity but I have a few questions. How do I change the mouse control to the right analog stick(it's currently touch screen...just bad), left mouse button shoot to right trigger(touch screen again by tapping), and space bar jump to X(it's triangle right now)?

    I had a look online for a tutorial. I couldn't find any, not that I was surprised because of how new this still is.

    If someone could help me out with what to look for to change that would be great.
    Thanks in advance.
     
  2. CQCSnake

    CQCSnake

    Joined:
    Oct 31, 2013
    Posts:
    5
    I solved my problem with the joysticks, and jump button but I am still having trouble getting the R button to be the fire button in the input manager.

    Some help please?

    $5.png
     
  3. CQCSnake

    CQCSnake

    Joined:
    Oct 31, 2013
    Posts:
    5
    Nevermind I see I need to change my script thanks for the help.....
     
  4. GrahamReeves

    GrahamReeves

    Unity Technologies

    Joined:
    Apr 8, 2014
    Posts:
    30
  5. CQCSnake

    CQCSnake

    Joined:
    Oct 31, 2013
    Posts:
    5
    Thanks for the link but I was already using it, For the "R" button it looks like this: if (Input.GetKeyDown(KeyCode.JoystickButton5) == true)
    I found the code in an example thought it looked like what I needed changed it to the "R" button and to my surprise it worked, I am a modeller not a programmer so I really have no clue what I am doing, I've only played in coding a little bit lol
     
  6. PeterD

    PeterD

    Joined:
    Feb 6, 2013
    Posts:
    120
    In that case the asset store is your friend
     
  7. CQCSnake

    CQCSnake

    Joined:
    Oct 31, 2013
    Posts:
    5
    Yeah I and trying to avoid the asset store, I may not know what I am doing but I would still like to follow tutorials to get stuff going.