Forum rules - please read before posting.

2D Movement Vertical Gate Obstacle. How to make it block Movement?

edited April 2018 in Technical Q&A
Hello,
I'm having difficulties creating a Hotspot that will block movement.
Basically is a gate, my movement is only left and right on a navmesh (5 pixels height) and when I reach the gate I shouldn't be able to pass until I unlock it. Right now my character just pass through it... Also I noticed that Collision Cube 2D doesn't work either and my character also pass through it.
Any advices? thank you

Comments

  • A Collision Cube 2D (or any 2D Collider) will only affect your player if they have a Rigidbody2D and 2D Collider of their own.

    But when it comes to Point And Click pathfinding, it's not recommended to use colliders to restrict motion.  Instead, you should replace your NavMesh with one that is a different shape (i.e. without the inaccessible portion) using the Scene: Change settings Action.
  • So basically I create different NavMeshes depending the accessibility and I change them with Change Setting Action.. Ok easy ! thank you Chris
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.