This site requires JavaScript, please enable it in your browser!
Greenfoot back
N8TH1N6
N8TH1N6 wrote ...

2022/12/16

Pathfinding

N8TH1N6 N8TH1N6

2022/12/16

#
Hey, I wanna make my enemy find the best path to the player Class and also recognize the borders Borders work like this
1
if (isTouching(borderBlock.class))
The movement of the enemy is just simply move(int) and when he connects with a border he turns and again moves in another direction. I want just a simple pathfinfing so the enemy follows the player around the borders etc.
You need to login to post a reply.