Like this
level$=STR(level)
hp$=STR(hp)
gamesave$=""
gamesave$=gamesave$+level+hp$
then you save it
SAVE "TXT:gsave",gamesave$
then you can load it
LOAD "TXT:gsave" OUT gameave$
then use MID() to get the spot they"re at
And turn it back into what it was before
hp=VAL(hp$)
level=VAL(level$)
ok, so if I used
hp=580
sp=345
SaveGame$="Data"
SaveGame$=SaveGame$+hp$+Sp$ then saved it
I would load it
load "txt:save" odd SaveGame$
then
SaveGame$=MID$("Data",???)
hp$=val(hp)
sp$=val(sp)
i get confused their and it never loads the hp
hp=580
sp=345
IF HP<0 OR HP>99 THEN HP=99
IF SP<0 OR SP>99 THEN SP=99
SaveGame$="Data:"
SaveGame$=SaveGame$+hp$+Sp$
SAVE"TXT:SAVE",SaveGame$
LOAD "TXT:SAVE" OUT SAVEGAME$
then
HP$=MID$(GAMESAVE$,0,2)
SP$=MID$(GAMESAVE$,2,2)
hp$=val(hp)
sp$=val(sp)
I found the problem
change LV$=MID("GAMESAVE",7,2)
to
LV$=MID(GAMESAVE$,7,2)
and if you show me the saving i can see if there is any other problems in the loading
@SAVE
LINESPACE$="\"
do this to the others
IF LV<1 THEN LV$=STR$(LV):LV$=LV$+LINESPACE$ ELSE LV$=STR$(LV)
GOLD=STR$(GOLD)
EXPP$=STR$(EXPP)
HP$=STR$(HP)
SP$=STR$(SP)
ATK$=STR$(ATK)
DF$=STR$(DF)
POTION$=STR$(POTION)
HERB$=STR$(HERB)
SWORD$=STR$(SWORD)
SHIELD$=STR$(SHIELD)
ARMOR$=STR$(ARMOR)
BOOTS$=STR$(BOOTS)
and for loading
LOAD "TXT:HOLLOWFD" OUT GAMESAVE$
do this to the others aswell
checks the numbers
LV$=MID(GAMESAVE$,3,2)
CHECKSTR$=MID(LV$,1,1)
IF CHECKSTR$=="/" THEN LV$=MID(GAMESAVE$,3,1)
if you have any problems with it let me know :)
umm dumb question, How would I get the sprite to animate, Because in petit computer it worked like spset 0,9,0,0,0,0,0 and spofs 0,x,y then spanim 0,5,4 but spanim is not working for me