Forum rules - please read before posting.

Only Horizontal movement in 2D game

edited July 2014 in Technical Q&A
Under camera settings I've set the perspective to 2D, moving and turning
to Unity 2D, and I've set the path finding method to Unity Navigation.
Once I've set the navmesh and collision cube down, then baked them I can
finally move... but only side to side no matter where I click.

The
game I'm trying to create has a top down view, similar to the SNES
Zelda games, so forcing perspective for distance isn't something I need
to do. I rotated the navmesh 90 degrees so it covers the entire background like I need it to, and turned off use gravity on my player.

I'm new to both Unity and Adventure creator, so thanks for your help and patience!

Comments

  • I found out my issues, I needed to slope my navmesh and collision cube and
    Bake again. just a heads up if anyone else runs into the same problem
  • edited July 2014
    hmm, now that I've created a navmesh which I can walk around, the issue is my player will walk directly over the pockets which are not part of the mesh. This is what my mesh looks like:

    image

    Any thoughts?
  • When using Unity 2D mode, the only compatible pathfinding method is Polygon Collider.  I apologise - I thought I'd added a warning message when not set properly, but I've added this to the next update.

    The Polygon Collider method let's you "draw" your NavMesh directly in the scene - look at the 2D demo scene to see an example.  Also check out this tutorial for a detailed instructions.
  • fantastic, thank you!
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.