Search Unity

Unity 4.3 Jump AI

Discussion in '2D' started by shotoutgames, Dec 29, 2013.

  1. shotoutgames

    shotoutgames

    Joined:
    Dec 29, 2013
    Posts:
    290
    Hello,
    I am very new to unity and have been working along with the source from the 2d demo creating a test 2d side scroller. Well anyway I am trying to write the script for the enemy AI. I basically want to know the 4.3 way to do jumping. I have the player working properly including animation states and I have the enemy looking for platforms and jumping but I don't understand the right way to get the player from ground to the platform.
    I didn't even know what a character controller in unity was until 2 weeks ago :) I see samples for jump using that but not the "new 4.3 way" using addforce?
    Hope you understand and I appreciate any help. Here to clarify.
    Any reason the demo uses 365 for jumpforce??
     
    Last edited: Dec 29, 2013
  2. Mr.Abu_aLsEeM

    Mr.Abu_aLsEeM

    Joined:
    Mar 9, 2013
    Posts:
    10
    check the unity Learn Section 2d Character controller ! it show you how to do jump \ double jump by add forces :)
     
  3. shotoutgames

    shotoutgames

    Joined:
    Dec 29, 2013
    Posts:
    290
    Thank you.
    Watched and learned.
    I guess my question boils down to how do I use forces but setup the NPC jump to land at a specific platform or point??