Forum rules - please read before posting.

Help. NPC does not move or follow the Player in 2D game.

I'm making a game of ships in 2D in AC, the mechanics are totally in 2D, which fly in space and I found two problems, the first one The NPC doesn't move and the other one I put a function in the actionList to make the NPC follow the Player and in the however it does not work, I have doubts about the use of the NPC navigation system in 2D since it is not on the ground but in the air or
outer space.

I used AC's default NavMesch to cover the entire sky and it didn't work.

In the scene manager the Pathfinding method > Polygon Collide is the only one supported in 2d.

https://uploaddeimagens.com.br/imagens/HhkwObg

https://uploaddeimagens.com.br/imagens/H5Ge5Q4

Comments

  • For some reason that I don't know, in the 2D game scenes in this configuration the standard menus also don't appear, even those called by OnStart. In other configurations that I was already used to, the appearance and concealment always worked.

  • An information that can help, I don't know if this is the origin of the problem, unity I started in 2D instead of 3D then I installed AC and started in 2D.

  • I need to see screenshots of the issue itself - i.e. the scene, the NPC, the NavMesh, and their Inspectors.

    If the Menus aren't appearing, check your Menu Manager - are the default set of Menus listed?

  • This configuration issue above I will leave aside for now, I switched to unity 3D but with a 2D plane game seen from above (topdown type).

    The menu problem does not occur here.

    But I still couldn't make the NPC follow the Player, I tried several methods and nothing.

    In the first image I used the default AC NavMesh I opened it in the area enough for the NPC and the player.

    https://uploaddeimagens.com.br/imagens/sEXf3eE

    In the second image I used an actionList to test and nothing happens.
    https://uploaddeimagens.com.br/imagens/x7cTQlo

    In the third image is the configuration of Ac to 2d.

    https://uploaddeimagens.com.br/imagens/cLUo0m0

  • Does the NPC respond to the Character: Move to point Action, commanded to move to a specific Marker in the scene?

    If not, does the Player respond to this Action, with Wait until finish? Action?

    What does your NPC's full Inspector look like?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.