しかしいざ実行してみると、カーソルキーの押し方次第で一度に過剰に足し引きされてしまい上手くいきません。
一度押したら綺麗に一度しか足し引きされないようにするにはどうすればよいのでしょうか?
repeat:redraw 2:color 0,0,0 : boxf 0,0,640,480 if(select == 0){ font "MS Pゴシック", 34,16 color 203,80,206 pos 390,300 mes "Game Start" }else{ font "MS Pゴシック", 30,16 color 203,167,206 pos 400,300 mes "Game Start" } if(select== 1 || select == -1){ font "MS Pゴシック", 34,16 color 203,80,206 pos 390,335 mes "Exit" }else{ font "MS Pゴシック", 30,16 color 203,167,206 pos 400,335 mes "Exit" } //↓キーを押した時の処理 getkey down,40 if( down == 1){ wait 10 div ++ } getkey up,38 //↑キーを押した時の処理 if(up == 1){ wait 10 div -- } //divを項目数で割った余りをtitleに代入 select = div \ 2 //Exitを選んでZキーを押すと終了 getkey Z,90 if(select == 1 ||select== -1 && Z == 1 ){ wait 100 end } font "MS Pゴシック", 20,16 color 255,255,255 pos 0,0 mes "select = " + select pos 0,40 mes "div = " + div redraw 1:await 10:loop