GML Is it possible to have an NPC move away from/closer to an object? (mp_grid)

Dr_Nomz

Member
I would like to make my NPCs be a few pixels from the walls, but closer to certain other ones based on their positioning using mp_grid, is this possible? Or can they not enter the grid at all if it has a wall object in it?

Basically I'm asking how flexible I can make the grid system.
 

TheouAegis

Member
It's not flexible at all, in my opinion. You could make the cells smaller and loop through each wall adding its corners to the grid; but i can forsee other issues with this that would require much tinkering.
 

Dr_Nomz

Member
Complicated subject, right. :/ Thanks anyway. (leaving unsolved in case someone else has an opinion to add)
 
Top