@The_Gem_Dev in my scene i want enemies to move randomly. Without touching or passing through obstacles. And when the player comes near to enemies, they should start chasing player until certain radius. If possible make a video on your youtube channel. It would be helpful for many developers.
I haven’t tried this out on my computer yet but I would in some hours and if it works I would create a tutorial on it. Presently I think creating an object around the enemies position should do the trick.
For a top down game I recommend a circular object. This object would be attached to the enemy with the position action. So once the player is in collision with this object it moves the enemy to the player and once the player is not in Collision with this object it stopes all the movement of the enemy to the player.
I almost spent half a day on generating the random movement of objects. I went through multiple posts in forum and tried to follow them. But couldn’t get to a properly working solution. If possible and if it works for you, please make a video on it and post it, which will help so many like me.
Thanks for the video.
My request was to move objects(enemies) randomly on the scene. And when player reaches them, they should start following the player up to certain distance.
The enemy which is the highlighted green could move randomly. Presently the enemy changes direction every single. Seconds when it’s not in collision with player. I would set the timer to a random value In the range of (5, 10). 5 would be the minimum second it takes to change direction while 10 would be the maximum second it would take to switch direction. Is this what you want?