i dont know if it will help you... its fiderent from what you want but it may can help understand...
int a=0;
while ( LoopGDK ( ) )
{
if ( dbMouseClick() == 1 )
{
if(dbMouseX() <200)
{
dbRotateSprite (2,a+1);
a=a +1;
}
if(dbMouseX() >200)
{
dbRotateSprite (2,a-1);
a=a -1;
}
}
so if you click in one side of the map it moves to that side... something like that
if you want it to click someone and rotate to where you clicked.. you can make something like
when you click check distance... down a 90 grades... and then use sin -1 to that... but i think its complicated
If someone need something, add me to your msn
Was SuperKid , now AlexZinn
