Play Journal Entries

Petit computer 3

ST.HMVそらまめnasyo36

10/21/2017 11:42 PM ·Spoilers

ボタンを押したらスプライトを変更するというものを作りたいんですが、 ACLS SPSET0.000 SPOFOS O,128,64 B==BUTTUN IF B AND #A THEM SPSET0,001 STICX OUT DX,DY X=X+DX Y=Y-DY SPOFS 0,X,Y では移動したら一番右上にでてしまいます。 どうすればいいでしょうか。

Advertisement

Comment

This post has no comments.

  • SPSETをSPCHRに変えればうまくいくと思います。

    Yeahs0
    Played
  • 仮にスティックが壊れてるにしても 右上はちょっと考えにくいかなー。 もし左上なら XとYが0だから。⇒ SPOFS 0,X,Y ただの書き間違いと思うけど 一応 エラー吐く場所。 SPOFOS B==BUTTUN ↑B=BUTTONとしても BUTTON()ではないので  ループを入れてもIFで入力判定しない。

    Yeahs1
    Played
  • STICXもだね。

    Yeahs1
    Played
  • 「移動したら一番右上」でなく、「ボタンを押したら一番左上」の書き間違いと思われ。 SPSETする度、そのSPの位置が初期化されてしまうため、IF B AND #A…の行にあるSPSETをSPCHRに変更すれば、位置はそのままで、キャラは変えられるかと。

    Yeahs1
    Played
  • THEMもあった。 もし 何故にSETじゃダメなんだ な~んて思う事があったら Aボタン入力処理の後と SPOFS 0,X,Y の後にウェイト1を突っ込んでみましょう。(ループ入ってるの前提) その上でCHRに直してみると 違いが良く解ると思われます。

    Yeahs1
    Played
  • 実際(ループを補完して)打ち込んでみたら、SPSETでも全然問題ありませんでした。 思い込みでコメントして申し訳ございません。 ・・・となると、「移動したら一番右上に」が、謎現象。

    Yeahs1
    Played
  • (ツッコミどころが多すぎて何を言えばいいのか分からない案件だ)

    Yeahs5
    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-2NLA-NUL-UWNL

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: