Stamos22
Member
Hello,
Thanks to the help of the fine people on this forum I've managed to get some pathfinding going! My enemy object will navigate objects that I've placed in the room using the mp_grid functions and it's all pretty neat for someone brand new to game making.
However, I've hit a problem that I've been trying to sort out all day to no avail.
When I use a spawner to place random walls in the room, the pathfinding doesn't work. The enemy just ignores any walls placed via the spawner. I can't figure it out. The pathing avoids the walls when I place them by hand, so something is lost in translation when they get spawned by the object, I'm just not sure what. I've tried messing around with the order in which the objects are created etc but that hasn't seemed to help.
If anyone has any ideas I'd greatly appreciate them.
Thanks for any help!
Thanks to the help of the fine people on this forum I've managed to get some pathfinding going! My enemy object will navigate objects that I've placed in the room using the mp_grid functions and it's all pretty neat for someone brand new to game making.
However, I've hit a problem that I've been trying to sort out all day to no avail.
When I use a spawner to place random walls in the room, the pathfinding doesn't work. The enemy just ignores any walls placed via the spawner. I can't figure it out. The pathing avoids the walls when I place them by hand, so something is lost in translation when they get spawned by the object, I'm just not sure what. I've tried messing around with the order in which the objects are created etc but that hasn't seemed to help.
If anyone has any ideas I'd greatly appreciate them.
Thanks for any help!