TileX[cloneindex]=x;
TileY[cloneindex]=y;
TileAnimpos[cloneindex]=animpos;
//cloneindex would point the current actor clone index
//you can view that index number by the Actor's name on Actor Control Panel
//Actor.0 Actor.1 Actor.2 etc
saveVars("data.dat","variablegroup");
//I don't need explain this
void LoadMap()
{
int i;
loadVars("data.dat","variablegroup");
for(i=0;i<400;i++)
{
CreateActor("Map","MapTiles",TileX[i],TileY[i],true);
Map.animpos=TileAnimpos[i];
}
}
ChangeAnimationDirection("Event Actor",STOPPED);
//crucial code for tiles
Users browsing this forum: No registered users and 1 guest