Easy Star JS Directional Conditions?

0 favourites
  • 3 posts
From the Asset Store
vision of stars is a collection of piano-based music to sit under the stars to
  • Any offers on how to use the directional conditions on the EasyStarJS pathfinding plugin?

    I've been using the plugin now for a while with no issues but wanted to add a sort of rail system and need directional pathfinding but can figure out how to get it to work.

  • I've never used directional conditions, but it seems straightforward enough:

    + System: On start of layout
    -> PF_Map: Begin adding directional conditions at 2,1
    -> PF_Map: Add direction LEFT
    -> PF_Map: End adding directional condition for the current tile
    

    This way the tile at (2,1) can only be entered from the left.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I've never used directional conditions, but it seems straightforward enough:

    > + System: On start of layout
    -> PF_Map: Begin adding directional conditions at 2,1
    -> PF_Map: Add direction LEFT
    -> PF_Map: End adding directional condition for the current tile
    

    This way the tile at (2,1) can only be entered from the left.

    I nearly tagged you in this as I knew you'd come up with a quick obvious answer as I've seen you in other threads using this plugin.

    Works a treat thanks man.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)