Help (mATAN) SOLVED
by ChrisKnapp · in Torque 2D Professional · 02/24/2018 (10:39 am) · 0 replies
Dear all,
i sincerely need help:
i want to move a sprite (wizard) via Mouse.
With code, i get the angle, change the ani according to direction and value,
and move the sprite.
It works, but last direction (south) doesnt work.
Any ideas?
Solved:
mATAN returns 0-180 (upper half circle), and -180 to 0 (lower half circle), for some reason..:-).
Thank you, kindest, Chris
i sincerely need help:
i want to move a sprite (wizard) via Mouse.
With code, i get the angle, change the ani according to direction and value,
and move the sprite.
It works, but last direction (south) doesnt work.
Any ideas?
Solved:
mATAN returns 0-180 (upper half circle), and -180 to 0 (lower half circle), for some reason..:-).
Thank you, kindest, Chris