Play Journal Entries

Petit computer 3

キムKENkenken0309

09/22/2017 3:26 AM ·Spoilers

グラフィックで描画した円をスプライトで線に沿って動かすにはどのようにすればいいでしょうか?

Advertisement

Comment

This post has no comments.

  • スプライトを円を描くように動かすには三角関数というものを使います。 三角関数とは 半径が1の円の中心から引いた線と円の交点のX座標をCOS(),Y座標をSIN()と言います。SIN(),COS()などをまとめて三角関数と言います。

    Yeahs2
    Played
  • ありがとうございます。試してみます!

    Yeahs1
    Played
  • こういう方法も有りますよ、という一例。 SPHOMEで中心を円の半径と合わせて(SPHOMEは絵の中でなければならないという事でもない)SPROTすれば円上を回ります ・・・が、それだとSP自体の回転ができないので、追加でSPLINKしてSPHIDEで親を見せない様にしてます。

    Yeahs1
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

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:

Post ID: 3DB-NBL7-DPU-2NL8-UN2-7H76

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: