Search Unity

Simple Animation won't work

Discussion in 'Scripting' started by Parsar, Nov 28, 2015.

  1. Parsar

    Parsar

    Joined:
    Nov 28, 2015
    Posts:
    3
    Basically I have been trying to make Ethan(the model) crouch when I hold space bar on keyboard and nothing happens here are screenshots for nearly everything:
     
  2. jister

    jister

    Joined:
    Oct 9, 2009
    Posts:
    1,749
    try Input.GetKey instead of GetKeyDown
     
  3. Parsar

    Parsar

    Joined:
    Nov 28, 2015
    Posts:
    3
    Didn't work
     
  4. Parsar

    Parsar

    Joined:
    Nov 28, 2015
    Posts:
    3
    Nevermind everybody it does work it's just the animation that delays like 4 seconds so you have to hold the space bar for a long time
     
  5. jister

    jister

    Joined:
    Oct 9, 2009
    Posts:
    1,749
    trim your animation? :)