2d compatibility/unity 2d

Forums 💬 NodeCanvas 🗨️ General Discussion 2d compatibility/unity 2d

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #14341
    cheshirekatsmile101@gmail.com
    Participant

      Will nodeCanvas work in Unity 2D? Any help is greatly appreciated.

      #14352
      Gavalakis
      Keymaster

        Hello,

        Yes, NodeCanvas works fine with Unity2D and there are even actions/conditions included related to Unity2D.
        Let me know if you have any other questions.

        Thanks

        #14351
        cheshirekatsmile101@gmail.com
        Participant

          I am really enjoying nodeCanvas! I need help with a navmesh for 2D. I cannot get the AI sprites to moveTowards or findTarget.

          #14350
          Gavalakis
          Keymaster

            Hello,

            Thanks! Unfortunately, Unity’s native NavMesh system does not support 2D games. There is nothing I can really do to make the native NavMesh work with 2D games cause it’s totaly up to Unity’s implementation. You will probably need to get a plugin for 2D pathfinding from the asset store for that, like for example PolyNav: http://u3d.as/6n3 which is also supported by NodeCanvas. (sorry for the shameless promotion :))

            Once again, it’s simply a restriction of Unity, unless I misunderstood the question completely.

            Let me know,
            Thanks!

            #14349
            cheshirekatsmile101@gmail.com
            Participant

              I figured that was going to be the solution. NavMesh 2D has depreciated. I will definitely check out the asset. Thank you for the support. I think a string/discussion about 2D might help someone in the community. I find nodeCanvas extremely useful in my game design and structure. I have been developing in Unity for three years and I feel like since I have been using nodeCanvas, my game structure is much more professional and fine tuned.Kudos. I am learning more and more everyday in the manual.

              #14348
              Gavalakis
              Keymaster

                Thank you very much!
                I am very glad to hear that you find NodeCanvas usefull in your projects 🙂
                Comments like yours really keep the project going.

                Thanks again

                #14347
                cheshirekatsmile101@gmail.com
                Participant

                  I did purchase the PolyNav asset. It works as expected, and better. This has really opened up many options for my design. I truly believe that any serious developer can benefit from the prototyping and getting right on the first or second try. Kudos!

                  #14346
                  Gavalakis
                  Keymaster

                    Thank you!
                    I am really glad you enjoy PolyNav 🙂 Thanks!

                    #14345
                    cheshirekatsmile101@gmail.com
                    Participant

                      Hello,
                      Is there a way to flip( or face direction) the sprite or Poly Nav Agent to look at object Player? Thank You.

                      #14344
                      Gavalakis
                      Keymaster

                        Hello,

                        Here is a script to do that. I’ve added more cases so you can do extra stuff when the direction change. Just add it on your sprite gameobject and set the PolyNavAgent reference.

                        Let me know if this works for you.
                        Cheers!

                        #14343
                        cheshirekatsmile101@gmail.com
                        Participant

                          Yes, this code did the trick, very cleanly. Your support is spot on. I thank you for your time.

                          #14342
                          Gavalakis
                          Keymaster

                            You are very welcome 🙂
                            Thanks as well!

                          Viewing 12 posts - 1 through 12 (of 12 total)
                          • You must be logged in to reply to this topic.