Page 2 of 2

PostPosted: Sat Feb 03, 2007 1:39 pm
by Sgt. Sparky
try my stickManJumperV1.3, Its better :D I am soon adding a save funtion :)

PostPosted: Sat Feb 03, 2007 9:54 pm
by Joshua Worth
using multiple variables is a bad idea. Use a very big array. Do you know how to use arrays?

PostPosted: Sat Feb 03, 2007 9:57 pm
by Sgt. Sparky
yeah, but for loading things some times those arrays can mess stuff up :(

PostPosted: Sun Feb 04, 2007 12:36 am
by Game A Gogo
array would be perfect if you saved it whit a FILE thing

PostPosted: Sun Feb 04, 2007 12:46 am
by Joshua Worth
you have an array for each variable that needs saving, and make it save into a group, eg. notes. Then when you click save, it saves the group "notes" into a file, with savevars().

PostPosted: Sun Feb 04, 2007 12:51 am
by Sgt. Sparky
but there could be 10 to 100 notes... or maybe more. would it still work for that? :) :D

PostPosted: Sun Feb 04, 2007 1:07 am
by Game A Gogo
yes, because default, there is no notes, you could set something like this in create actor:
Code: Select all
int a;
for(a=0; a<(the max note number, which will be the same size as teh array); a++)
{
      strcpy( &note[a], "n"); //n is for none
}


readjust the code for fitting your needs

PostPosted: Sun Feb 04, 2007 1:10 am
by Sgt. Sparky
okay dokey! but right now I am not working on that, I just finished the login thingie and I put it on the demo page :D

...

PostPosted: Sun Mar 25, 2007 9:04 pm
by Stickdood
I didn't seem to find it, but how large is the Game Editor file? I hope it's not TOO large. :shock:

PostPosted: Sun Mar 25, 2007 10:16 pm
by Sgt. Sparky