Play Journal Entries

Petit computer 3

TakumiTakumi.K0415

1 day ago ·Spoilers

またまた質問です。 [NK23Q391] これにハイスコアをセーブさせ、次するときにハイスコアをロードさせたいです。 どうしたらよいでしょうか。

Advertisement

Comment

This post has no comments.

  • TERA(LL)

    1 day ago ·Spoilers

    方法はいくらでも有りますが、画像はその一例。 ハイスコア用の変数とファイルを用意して、ゲーム終了毎に大きい方の数字を文字に変換してから記録してます。

    Yeahs0
    Played
  • TERA(LL)

    1 day ago ·Spoilers

    他にも、配列変数として数値のままセーブする方法も有るし、毎回大きい方を記録という方法でなくても、ハイスコアと今回のスコアを比較してハイスコアが更新された時だけセーブする等々・・・ 同じ一つの事をする処理でも一つの方法に満足しないで、あんな方法はできないか?こんな方法は?みたいに普段からいろいろな方法を考えてみる習慣つけると吉かと。

    Yeahs0
    Played
  • Takumi

    1 day ago ·Spoilers

    わかりました。 色々と方法はわかったので、あなたのプログラムを参考にしてよろしいでしょうか?

    Yeahs0
    Played
  • TERA(LL)

    1 day ago ·Spoilers

    もちろん参考にしてもらう為にコメントしてますので、大丈夫ですよ。

    Yeahs0
    Played
  • 私みたいに大きなデータを扱うので「別スロットへ書き出してプログラムごと保存/読み込み」という手も。 プログラム内で作成したマップデータの保存とかで使える方法ですが。

    Yeahs0
    Played
  • Takumi

    17 hours ago ·Spoilers

    今までの方法とは少し違った、マップの時に使うやり方もあることがわかりました。

    Yeahs0
    Played
  • Takumi

    17 hours ago ·Spoilers

    投稿を参考にさしていただきました。 またその公開キーを公開しようと思います。 ありがとうございました。

    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-2NLB-KEL-LLHL

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: