How do I make my NPC climb blocks while following me

HELP ME WITH THIS pls pls pls pls pwetty pls

:no_mouth: :no_mouth:

how to make the npc path find

uhh maybe try this?

true pathfinding is quite hard…

In one of my games, I had the player emit invisible particles behind him while the chasing enemy follows the nearest particle, and therefore following the player. The only downside is that the enemy follows the players exact path so you can easily juke him.

I don’t think a similar method would work here, but do the game is a top down, it’s pretty solid.

If you’re game is a platformer or sidescroller, I recommend using raycasts to detect blocks near the NPC so if there’s every a block infront of him, he can jump using the impulse or same jump value as the player.