My guess would be to make an array, then save it. Each number of the array is the cloneindex of the star / actor.
Make 3 new avriables, each of them arrays. The
1000 is the number of stars you have in the game, You could make this
9999 if you want to.
The 3 variables should be named
The staranim variable represents the animation of the actor. Using this, you could save the planets as well. Or if one star is bigger then the other you could use this method to reover it's lost animation.
Example:
Draw actor - Star / actor
- Code: Select all
+-=-=-=-=-=-=-=When a load variable is set to 0-=-=-=-=-=-=+
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==+
starx[cloneindex] = x;
stary[cloneindex] = y;
staranim[cloneindex] = animindex;
+-=-=-=-=-=-=-=When a load variable is set to 1-=-=-=-=-=-=+
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==+
x = starx[cloneindex];
y = stary[cloneindex];
ChangeAnimation(staranim), etc...
That should work
Unless each star / actor is a different actor all together, and not cloned actors.