in construct 2 we can set that and its good .. but i want to get it and test if my object angle is toward another object position then do something ...

I don't know if there's a specific way but if you know the locations of both objects, then the angle is given by the inverse tan of the difference in vertical pixels divided by the difference in horizontal pixels. just be aware of some symmetry problems.

So if you had an object Turret and an object Target, using the expression Shinkan suggested you'd do angle(Turret.X, Turret.Y, Target.X, Target.Y) to get the angle from Turret to Target.

You'd then compare this angle to Turret.Angle to see if it was pointing in the right direction.

So if you had an object Turret and an object Target, using the expression Shinkan suggested you'd do angle(Turret.X, Target.X, Turret.Y, Target.Y) to get the angle from Turret to Target.

You'd then compare this angle to Turret.Angle to see if it was pointing in the right direction.

actually it should be angle(turret.x,turret.y,target.x,target.y)

> So if you had an object Turret and an object Target, using the expression Shinkan suggested you'd do angle(Turret.X, Target.X, Turret.Y, Target.Y) to get the angle from Turret to Target.

>

> You'd then compare this angle to Turret.Angle to see if it was pointing in the right direction.

>

actually it should be angle(turret.x,turret.y,target.x,target.y)

Ok, so angle(Turret.X, Turret.Y, Target.X, Target.Y) as might be case-sensitive

but angle(Turret.X, Turret.Y, Target.X, Target.Y) give me a number less then 0 sometimes like -110 so i add the number to 360 if that number is less then 0 then this solve my problem ... thanks ...