プレイ日記
☆CodeZeяo☆ Code-Zero-666
@Oscar Hey Could you possibly help me with saving, I know of a long way to save but I need a shorter version. :)
3そうだね
プレイ済み
返信[1]
親投稿
press save (sometimes certain positions) Go to direct tap run then a What ever you program should save but if u made it where theres a button you press you might have to press that
0そうだね
プレイ済み
返信[2]
親投稿
Oscar PwnageBlock
Copied from a previous comment of mine... You can use the SAVE command in conjunction with an array. First, you'd define the array, which must be numerical and will hold the data you want to save. Afterwards, you can use the save command by specifying the file type as DAT and specifying the array. E.g.: DIM SAVARR[3] SAVARR[0]=HP SAVARR[1]=XP SAVARR[2]=IDK SAVE "DAT:FILENAME",SAVARR
0そうだね
プレイ済み
返信[3]
親投稿
Oscar PwnageBlock
Similarly, to load the data back, you'd use another numerical array and the LOAD command. You can keep the array empty as it will be expanded automatically. All data will be in the same order as you saved it. I suggest wrapping the load in a CHKFILE conditional. IF CHKFILE("DAT:FILENAME") THEN DIM LOADARR[0] LOAD "DAT:FILENAME",LOADARR,FALSE HP=LOADARR[0] XP=LOADARR[1] IDK=LOADARR[2] ENDIF
0そうだね
プレイ済み
返信[4]
親投稿
Oscar PwnageBlock
If you have any questions or doubts, feel free to ask!
0そうだね
プレイ済み
返信[5]
親投稿
☆CodeZeяo☆ Code-Zero-666
Thank you so much @Oscar, You helped a lot :)
0そうだね
プレイ済み
返信[6]
親投稿
☆CodeZeяo☆ Code-Zero-666
When i'm using DIM Savedata[Number of vars] how many could I use on this? There's a lot in my game :)
0そうだね
プレイ済み
返信[7]
親投稿
Oscar PwnageBlock
As many as you want! Or at least as much as SmileBASIC's memory will allow, which is a lot. If you have arrays that you want to save, it can be a bit complicated, but it's still possible. Ask me about that if you need to know how.
1そうだね
プレイ済み
返信[8]
親投稿
☆CodeZeяo☆ Code-Zero-666
I got saving now, thanks to you :) I appreciate that a lot. now I need to know how to put multiple enemies at a time on screen.
0そうだね
プレイ済み