View Martine's post (sprite direction ...) for this comment.

SmileBASIC Community

Oscar

Spoilers · 08/24/2016 11:32 AMPlayed

As Hanzo said, you can find the angle (in degrees) with DEG(ATAN(y,x)). However, be mindful that values range from -180 to 180 degrees. In case you want the values to range from 0 to 360 degrees, you can easily set a conditional like this... STICK OUT X,Y ANG=DEG(ATAN(Y,X)) IF ANG<0 THEN INC ANG,360 ENDIF

Advertisement

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Edit Comment

Select an action: