SmileBASIC コミュニティプレイ日記nate NJR14322016/05/04 09:23:05How do you save a high score in a game? I want to know for my crashieplane game. Please answer! :D4そうだね 8返信プレイ済み2017/11/04 03:33:25に取得
SmileBASIC コミュニティ返信[1]親投稿Ed CPFace2016/5/4 9:35Simplest way to save and load: SAVE "TXT:HIGHSCORE",STR$(HIGHSCORE) HIGHSCORE=VAL(LOAD("TXT:HIGHSCORE"))1そうだね プレイ済み2017/11/04 03:33:25に取得
SmileBASIC コミュニティ返信[2]親投稿V360 TheV3602016/5/4 10:00Another, this time using DAT files: VAR SAVE%[1] ...later, when you want to save SAVE%[0]=SCORE_VAR_HERE% SAVE "DAT:HIGHSCORE",SAVE%1そうだね プレイ済み2017/11/04 03:33:25に取得
SmileBASIC コミュニティ返信[3]親投稿nate NJR14322016/5/4 22:02Thanks, but how do i make it not save every single time if i get more than 0? here is the code i used.0そうだね プレイ済み2017/11/04 03:33:25に取得
SmileBASIC コミュニティ返信[4]親投稿V360 TheV3602016/5/5 3:52If you want to hide the "Load successful" dialog, then change line 292 to HIGHSCORE=VAL(LOAD("TXT:HIGHSCORE",0))0そうだね プレイ済み2017/11/04 03:33:25に取得
SmileBASIC コミュニティ返信[5]親投稿Ed CPFace2016/5/5 5:04S is your score, right? If S is higher than the previous high score, you should be saving S, not the previous high score: IF S>HIGHSCORE THEN SAVE "TXT:HIGHSCORE",STR$(S)2そうだね プレイ済み2017/11/04 03:33:25に取得
SmileBASIC コミュニティ返信[6]親投稿nate NJR14322016/5/5 5:51Is this the right code? if it is it just saves whenever i get more than 00そうだね プレイ済み2017/11/04 03:33:25に取得
SmileBASIC コミュニティ返信[7]親投稿nate NJR14322016/5/5 6:01nevermind figured it out! Thanks Ed and V360! :D1そうだね プレイ済み2017/11/04 03:33:25に取得