Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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??