• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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