# How do I create pathfinding for an isometric tilebased game

Get help using Construct 2

### » Sun Jun 01, 2014 1:40 pm

I am looking for tips, or answers to how you can create pathfinding for a tile-based game. The player should move to the middle of a tile before going to the next one.

Any tips or answers would be greatly appriciated.
(\__/)

(='.'=)

(")_(")
B
23
S
10
G
1
Posts: 74
Reputation: 3,244

### » Sat Jun 07, 2014 11:42 am

Just going to make this thread a little bit visible again. I have now tried creating my own A* algorithm (pathfinding) using the manhatten technique.
I tried to follow this but I couldn't wrap my head around it:
http://www.raywenderlich.com/4946/intro ... athfinding

Anyone care to give it a go, or have any tips? It would be greatly appriciated!
(\__/)

(='.'=)

(")_(")
B
23
S
10
G
1
Posts: 74
Reputation: 3,244

### » Sat Jun 07, 2014 12:08 pm

Find the imagepointX(0) and imagepointY(0) of the target you want move to. (image points are the origin points) and set those coordinates as the moving towards target or regular pathfinding target with find path towards previously found coordinates.

Upon arriving at destination, execute next event.
Who dares wins
B
57
S
17
G
21
Posts: 1,880
Reputation: 19,628

### » Sat Jun 07, 2014 3:36 pm

I don't seem to able to do what you are saying. It seems like it "ignores" the squares on the way. Look at the example for walking. (From red to green)
You do not have the required permissions to view the files attached to this post.
(\__/)

(='.'=)

(")_(")
B
23
S
10
G
1
Posts: 74
Reputation: 3,244

### » Sat Jun 07, 2014 3:41 pm

It needs to create waypoints in between the red and green squares. The link below is to a tutorial to create a board game, which I used as a basis for grid based movement in a game of mine.

https://www.scirra.com/tutorials/630/bu ... oving-them

Please note it does require the Move To plugin. It gives the link to that in the tutorial.
B
11
S
2
G
1
Posts: 79
Reputation: 842