Grid Based PathFinding?

Just started using Construct 2? Post your questions here

Post » Mon Sep 14, 2015 2:24 am

is it just me or does that path finding behavior not support grid based movement?
I have rotate set to false and Diagonals set to disabled but they still move smoothly and move Diagonally
I want a 4 directional teleport like movement
B
13
S
6
G
1
Posts: 150
Reputation: 1,962

Post » Mon Sep 14, 2015 10:02 pm

make the the grid 25x25 and the cell size 25 from yousr pathfinding sprite and use the sprite solid between 25 size..
B
17
S
7
G
7
Posts: 205
Reputation: 5,335

Post » Tue Sep 15, 2015 12:11 am

You could try this plugin:
viewtopic.php?t=68958&start=0
It probably can be used to do what you want.

Or you could implement pathfinding in just events. Here's my latest attempt using a hex grid. It actually should work if you change the hexagons to squares and position them on a grid. You just need to tweak the collision polygon into a square with beveled corners so diagonal cells won't be used.
viewtopic.php?f=147&t=152368&p=962474&hilit=astar#p962474
B
94
S
33
G
114
Posts: 5,357
Reputation: 73,775

Post » Mon Sep 21, 2015 12:07 am

CBelle wrote:make the the grid 25x25 and the cell size 25 from yousr pathfinding sprite and use the sprite solid between 25 size..


I have tried this with 32x32 but it hasn't worked so far
Edit:aslo what do you mean by make the grid 25x25 I don't see a grid plugin

R0J0hound wrote:You could try this plugin:
viewtopic.php?t=68958&start=0
It probably can be used to do what you want.

Or you could implement pathfinding in just events. Here's my latest attempt using a hex grid. It actually should work if you change the hexagons to squares and position them on a grid. You just need to tweak the collision polygon into a square with beveled corners so diagonal cells won't be used.
viewtopic.php?f=147&t=152368&p=962474&hilit=astar#p962474


I have looked into the astar plugin but I don't understand how it works :(
B
13
S
6
G
1
Posts: 150
Reputation: 1,962


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests