Path Finding in 4 directions

This forum is currently in read-only mode.
From the Asset Store
Rotate & Animation for 16 Direction & Mouse Direction
  • Hi, is it possible to have an object pathfind after the player, but move in only four directions? I've tried the RTS behaviour but I don't know how to get the object to only move in 4 directions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i would try combaining RTS and Grid Behaviour.

  • i would try combaining RTS and Grid Behaviour.

    RTS and grid movement are two different behaviours, they won't combine with eachother. It didn't work.

  • Never mind, I found a work around using the RTS object.

  • Care to share your results?

  • Care to share your results?

    yeah, i am kind a interested too

    EDIT:

    okey i actualy find my answear lol. as always it was in front of my nose shining with obviousity.

    but i havent tested it so far.

    RTS+8Direction behaviour(setting 8dir with just 4direction)

  • > Care to share your results?

    >

    yeah, i am kind a interested too

    EDIT:

    okey i actualy find my answear lol. as always it was in front of my nose shining with obviousity.

    but i havent tested it so far.

    RTS+8Direction behaviour(setting 8dir with just 4direction)

    Nope, I tried that too and it didn't work.

    In the end I just used the rts object but had a few events that made it so it had only 4 directions. It still can move diagonally but after making it I found that this effect works better for my game anyway.

  • >

    > > Care to share your results?

    > >

    > yeah, i am kind a interested too

    >

    > EDIT:

    > okey i actualy find my answear lol. as always it was in front of my nose shining with obviousity.

    > but i havent tested it so far.

    > RTS+8Direction behaviour(setting 8dir with just 4direction)

    >

    Nope, I tried that too and it didn't work.

    In the end I just used the rts object but had a few events that made it so it had only 4 directions. It still can move diagonally but after making it I found that this effect works better for my game anyway.

    can you give more details perhaps?

    or an example cap?

  • This is how I did it:

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