hi i am developing a game same as pc man. My requirement is , the enemy should follow the player where ever he goes . How can i implement this. Is there any example for this. PLs help me out .
Thanks,
Kumar KS.
hi i am developing a game same as pc man. My requirement is , the enemy should follow the player where ever he goes . How can i implement this. Is there any example for this. PLs help me out .
Thanks,
Kumar KS.
Hi Kumarks,
What have you tried so far?
The first thought is how the enemy should follow the player for example you can set the direction of the enemy to be player.x and player.y but if you want to create a “shadow”, an enemy that uses the same path as the player then you might need to save the path of the player and have the enemy follow that path.
Best regards,
Tomas
Hi Kumarks,
What have you tried so far?
The first thought is how the enemy should follow the player for example you can set the direction of the enemy to be player.x and player.y but if you want to create a “shadow”, an enemy that uses the same path as the player then you might need to save the path of the player and have the enemy follow that path.
Best regards,
Tomas