Discussions

Petit computer 3 Community

ηβκ V-13.7hibiking0412

10/18/2017 10:24 AM ·Spoilers

Open Closed

指定された秒数がたったら次のプログラムに進むプログラムの組み方を教えてください。

できれば直接教えていただけたらうれしいです。

Advertisement

Comment

This post has no comments.

  • WAIT 60 で約 1 秒待って次に進む WAIT 600 で約 10 秒待って次に進む

    Yeahs1
    Played
  • 指定された秒数の間、何もしない(できない)のであれば、WAITで事足りるんだけどね。

    Yeahs0
    Played
  • ステージが始まったら、(強制的に)5秒後に次のステージに進む例。

    Yeahs0
    Played
  • アドベンチャーゲームのように 単純に プレイヤーも プログラムも 一定時間待ってもらうだけなら WAIT 「待つ時間」 または VSYNC 「待つ時間」 で アクションゲームのように プレイヤーの操作は受け付けないが 画面描写(敵を動かすなど)したい場合は 「ループ初め」 COUNT = COUNT + 1 「COUNTを条件とした ループ脱出命令」 VSYNC 1 '1/60 秒待つ 「ループ終わり」 とさせたほうがいいですね。

    Yeahs0
    Played
  • 1/60秒ごとに自動的に1増える「MAINCNT」というシステム変数もあるので S=5'次の処理に移るまでの秒数 T=MAINCNT+60*S WHILE 1 ~~画面更新処理をこのへんに~~ IF MAINCNT>=T THEN BREAK VSYNC 1 WEND としてもOKですにゃ~(*´▽`*)

    Yeahs1
    Played
  • ありがとうございます! 早速使わせてもらいます!

    Yeahs0
    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-GLM-RMXK

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: