View PChicken's post (How to calculate ...) for this comment.

SmileBASIC Community

Alex

Spoilers · 12/01/2016 7:12 AMPlayed

the angle the circle pad is pointing is given by: STICK OUT SX#,SY# ANGLE#=ATAN(SY#,SX#) the #s after the variable names means they're realtypes. depending on your code they may or may not be there, it's just how I write it. Keep in mind Y comes first in ATAN. Angle is returned in RADIANS not degrees. 0° is stick pointing left, 90° is up, and so on.

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: