Can someone take a look at this?

I have been working on a really simple game. And it kinda works well. But I dont like the way the enemy AI works, as the enemy kinda moves wrong.

I found this video http://www.youtube.com/watch?v=4u851UWNa78&feature=related and the game is almost 100% same gamplay as mine. But the enemies move so smoothly. Some random, some attack when you get close to 'em. Some only attacks when your not shining the light on 'em and so on.

Could someone please help me so I can make a script that makes enemies follow me, and still keep their distance. Moving around the player and so on. More or less the same as in this video.

Hmm, i guess, if you want them to follow you and keep the distance, you have to script it, so it follows you but keeps the distance :stuck_out_tongue: You set a value to X, and if the nmy is less than X from you it turns back/tries to orbit you.

And you shuold use forces for physical obejcts (not set velocity), or use euler rotation/positino vectors, and modify those vectors smoothly, like, give them acceleration/decceleration over time.

I like that video too, btw, i found it on youtube, and watched all, it gave me good inspiration.