360

i'm trying to put an aimbot in my actor
if i push the arrows, the caracter moves in the screen
and i want to make the picture alwas aim in the target
this one does not work
am i forgeting something?
if i push the arrows, the caracter moves in the screen
and i want to make the picture alwas aim in the target
animpos = nframes*direction(x,y, target.x , target.y)/360.0;
y+=1;
this one does not work
am i forgeting something?