I want to make patrolling monsters,
but my school blocked AI overview
so I’m having a hard time figuring it out.
I want to make patrolling monsters,
but my school blocked AI overview
so I’m having a hard time figuring it out.
Use chat tgb/j You could use jwunderl pathfinding extension plus jwunderls sprite utils to check if the player is within range so the monster activates chase mode or smth
This should be in the arcade category, not uncategorized
For patrolling, give each monster two or three waypoint tiles and set its pathfinding target to the current one; when it gets close, advance to the next waypoint. In an on-game-update loop, use the sprite-utils range check TheGooberEarth mentioned: if the player is within a few tiles, switch the target to the player’s tile; when the player gets far enough away, resume the last waypoint. Keep activation per-monster so they don’t all chase at once.
Fixed.
Sorry, I am still learning the catigorization feature and how to use it. I’ll try my best to learn!