Play Journal Entries

Petit computer 3

Soybeanman2013niconico

1 day ago ·Spoilers

SPFUNCで設定したDEFの名前を取得したいのですが無理ですかね? 出来たらSPVAR等の変数にわざわざ入れなくて済むのですが…

Advertisement

Comment

This post has no comments.

  • ツララ

    1 day ago ·Spoilers

    逆に何で変数に入れたくないんです? システム変数に入れるのと自分で定義した変数に入れるのとどう違うんです?

    Yeahs0
    Played
  • Soybeanman

    1 day ago ·Spoilers

    ツララさん>>コメントありがとうございます。 ↑の投稿に書いてある変数というのは配列変数のことです。 勘違いしやすい書き方ですみません。 SPFUNCの方がいい理由としては、 SPVARの場合8個ある内の1つを使って しまうので、他に8個以上SPVARに入れたい 値があった場合困ってしまいます。 しかし、SPFUNC(管理番号)みたいな感じで変数に入れれるならば、必要な時(自機が当たったSPはアイテムか敵どっちかを判定したい時等)に一旦変数に入れて(ループ内にDEFの名前=SPFUNC(当たったSP)を入れる)判定(IF DEFの名前=="TEKI" THEN 処理)をすれば、SPVARや配列変数の中身を汚さずに判定出来ていいなぁ ということです。

    Yeahs0
    Played
  • えくる

    15 hours ago ·Spoilers

    スプライトの個数にもよるけど0-255は敵、256-512はアイテムみたいな使い方にしてみてはどうでしょう。

    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-2NLB-KCN-VWU8

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: