Hello mans, Happy Holidays. :D
Good, I need to rotate player to the direction of a clicked point. I use this code to move the MC:
Printable View
Hello mans, Happy Holidays. :D
Good, I need to rotate player to the direction of a clicked point. I use this code to move the MC:
Solved.
Code:rotate=-(Math.atan2(_xmouse-player_mc._x, _ymouse-player_mc._y))*radiance;
player_mc._rotation = rotate;