トピック
*J.P.*[P]£ aj2003aj

help on making a simple saving system

so i want to know how you can save variables and load them back in the next time you go into your game, would i use arrays or is it dont another way? lets say i want to save that i have 12 apples (APPLES=12) and 7 matches (same) how would i save those? anyways help would be REALLY appreciated!
9そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian1
You have two options, the first is to pack up everything into a big string. This can be simple like a comma separated value file or complicated... The problem with this approach is unpacking everything later. The other option is to put everything into an array and save load that. You are limited to a single data type however. I recommend you try this method. Save/Load demo attached.
2そうだね
プレイ済み
返信[2]
親投稿
*J.P.*[P]£ aj2003aj
ok ill try out something like that, thanks!
0そうだね
プレイ済み
返信[3]
親投稿
Joe Hollowsky
You know how to save a number. I do like your 3D effect. I did't beat it yet. Can you make a pause command? I like pause the game for something else.
0そうだね
プレイ済み
返信[4]
親投稿
*J.P.*[P]£ aj2003aj
uh.. i guess i could try..
0そうだね
プレイ済み
返信[5]
親投稿
oct Aidan xbomb795
hey j.p im not going to be able to finish my contest entry sadly due to not haveing enough time just dropping be to say hello.
1そうだね
プレイ済み
返信[6]
親投稿
Autz sonic-HD8765
If you're saving string(s), a good exercise would be how would you separate each data, because strings are problematic because of that. If you're saving just numbers, you can save an array containing all the numbers, and is much easier to load later since you would only need an array to get the data and not doing weird things to see which data goes for what variable.
0そうだね
プレイ済み
返信[7]
親投稿
*J.P.*[P]£ aj2003aj
well i would need like two strings (name and ..lol i forgot) so i think i will make three save slots, so clicking one will save the slot your using then go to the game and load that slot, VAR SLOT1SAVE[47] something like that then just repeat slot save until i have 3 or them. but anyways using a for loop how can i make a spofs go up 16 for every I like FOR I=0 TO 19 SPSET I,0 SPOFS I,?,? NEXT
0そうだね
プレイ済み
返信[8]
親投稿
*J.P.*[P]£ aj2003aj
i mean to make like a grid of sprites using a for loop, i know theres a command but i forgot what it was..
0そうだね
プレイ済み