
Hblade wrote:The tiles, are cloned actors and I've always had problems using arrays for they're locations because its based on Cloneindex and what happens if you delete one? And what happens if you have a bunch on there but want to load another file without having to reset the EXE? The variables dont get reset the tiles get distored and sometimes crashes the EXE O-o
void reset()
{
int i;
DestroyActor("tiles"); //That destroys all the tiles.
for(i = 0; i < 20000; i ++) //That resets all the variables.
{
TX[i] = NULL;
TY[i] = NULL;
TANIM[i] = NULL;
}
}
reset();
Users browsing this forum: No registered users and 1 guest