I've been trying to implement both pixel movement and A* pathfinding on my game for chase events, after trying several combinations of scripts, the closest I got to my vision was with OneEyedEagle's scripts.
With the included event scripts, by creating an event with a custom move route using the script 'astar_toward(-1)' on repeat, I was able to create events that follow the player around the map and use pathfinding to find their towards the player while also using pixel movement.
However, on my current setup, the chase event has the default 32x32 tile size while the player has a 20x20 hitbox. From what I've seen, unless both the player and event hitboxes are 32x32, there are tons of instances were the event cannot reach the player, and I was wondering how should I go around making it so the event is capable of touching the player regardless of where they are standing.
(Notice how sometimes the spider isn't capable of touching/damaging the player)
With the included event scripts, by creating an event with a custom move route using the script 'astar_toward(-1)' on repeat, I was able to create events that follow the player around the map and use pathfinding to find their towards the player while also using pixel movement.
However, on my current setup, the chase event has the default 32x32 tile size while the player has a 20x20 hitbox. From what I've seen, unless both the player and event hitboxes are 32x32, there are tons of instances were the event cannot reach the player, and I was wondering how should I go around making it so the event is capable of touching the player regardless of where they are standing.
(Notice how sometimes the spider isn't capable of touching/damaging the player)