Forum rules - please read before posting.

NAV MESH PROBLEM

A MONSTER IS HUNGRY AND wont let you pass. You feed him and you may go on your way! Horray!

The way IM doing this is having a nav mesh that stops at the monster. when you feed him, I swap the nav mesh for another, Im using Send message/turn off to do this.

However, the second Nav Mesh, doe not function totally right. SEE IMAGE,
The blue line shows (roughly) when the first nav mesh is, and the pink where the second one is. on the second, your player CAN move from teh bottom road straight up, without going back to the stairs..., as if he had a ladder.. or the reverse.
However, before I added this swapping mesh thing, I used the pink nav mesh as a test and it worked corectly, my guy would walk all the way around, and go up teh stairs as he should.

BELOW is an image that highlight ALL my problems from the last couple of posts...

image

Comments

  • edited October 2015
    OK I have some more info:
    I have got it to work, but by a botch job.

    The problem still exists.
    So I drag the first Nav Mesh into the defalult nav mesh slot, on PLAY, it gains the NavMesh Layer, but when I swap NavMeshes (by using Send Message/ turn off on the first and turn on on the new Nav Mesh) the second one DOES NOT get the NavMesh Layer assigned.
    There IS some kind of nav mesh still working, but its like the central gap between the top pink (above pic) route and the bottom route are ignored.

    Its fixed by NOT swapping actually, Im stopping the Player pass the monster, simply by covering the whole area with a hotspot that stops the player on the stairs and doesnt let him pass because you are always telling him to go to that spot.
    It works for me, but Id like to know why swapping Nav meshes aint working!

    Mark
  • Don't switch NavMeshes by sending messages, use the Engine: Change scene setting Action instead.
  • OH? Do I have to change scenes to change NavMeshes? That seems heavy. I did all my variables as local and will the player be in the same place? (If I copy the scene but swap the NavMesh?)

    Mark
  • Sorry - I meant Engine: Change scene setting.  Whoops!
  • edited October 2020

    @ChrisIceBox Is this action still available?, I Can't see this on the Engine: menu at all.

    Needing to find a way to swap navmesh at runtime. Is there a new method?

    Thanks

    EDIT: I found it in the Demo....It's now under SCENE: Change setting

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.