View PChicken's post (How do you point ...) for this comment.

SmileBASIC Community

DasEtwas

Spoilers · 10/09/2016 4:23 PM

If you for example have an arrow sprite, you can point it in a direction with SPANG or something like that. For the angle formula, you first need the X and Y distance to the object. DX = objectX - spriteX DY = objectY - spriteY then we can use the formula to get the angle in radians RADANG = ATAN2(DX, DY) now we just have to convert it to degrees DEGANG = DEG(RADANG)

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: