Offset for pathfinding grid?

Discussion and feedback on Construct 2

Post » Fri Feb 15, 2013 11:55 am

The (relatively) new path-finding behaviour is great, but I had one small request:

@Ashley : Would it be possible to add offset values for the positioning of the grid relative to the top and left of the layout?


In a game I'm working on my map is made up of a grid of fairly large square objects -- this means that I could set the cell size of the path-finding behaviour to the same size as those objects and get very accurate path-finding with good performance... except that thanks to the game's UI elements a grid set to the exact size of the objects doesn't match up with the position of said objects -- this could be fixed if I could specify that the grid should be offset from the top and left sides of the layout to compensate for the UI elements.

As a side-note the same thing would be useful for the "layout grid"'s "snap to grid" option.jbadams2013-02-16 22:52:34
B
24
S
5
G
2
Posts: 104
Reputation: 3,136

Post » Fri Feb 15, 2013 10:11 pm

This is an issue in my game as well. Good suggestion.
B
3
G
2
Posts: 12
Reputation: 699

Post » Mon Feb 18, 2013 12:01 pm

Any official response? @Ashley?
B
24
S
5
G
2
Posts: 104
Reputation: 3,136

Post » Sat Nov 09, 2013 1:28 am

I'm having the same problem. Has anyone been able to figure this out yet?
B
5
Posts: 6
Reputation: 274

Post » Fri Aug 29, 2014 1:52 pm

@Ashley
Offset for path-finding grid would be very helpful, especially for board games.
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Sun Feb 15, 2015 9:58 pm

+1 from me, i miss this feature very much, actually
B
5
Posts: 1
Reputation: 229

Post » Thu Sep 10, 2015 3:51 am

after 2 years, still no update regarding this offset? damn I need solution so path finding could run only on specific region of layout because my game layout is kinda big
B
10
S
2
Posts: 12
Reputation: 526

Post » Thu Sep 10, 2015 12:54 pm

Hello;

Can't the Regenerate Region action do this?
If you have an offset board area you could also underlay it with an object and use Regenerate Region Around Object.

yours
Winkr7
B
22
S
6
G
2
Posts: 146
Reputation: 2,257


Return to Construct 2 General

Who is online

Users browsing this forum: glerikud and 8 guests