In BlitzMax user-defined types don't have they're own hidden list to keep track of them, you have to make one yourself. So what you can do is somewhere near the top create a list to use to keep track of all your objects:
Then, whenever you create a new AniFig, you just add it to the list:
To cycle through each AniFig you use EachIn on the list:
And there you go! Hope it helps!
Global anifig_list:TList = CreateList()
Then, whenever you create a new AniFig, you just add it to the list:
Local Fig:AniFig = New AniFig ListAddLast(anifig_list, Fig)
To cycle through each AniFig you use EachIn on the list:
For Local Fig:AniFig = EachIn anifig_list
And there you go! Hope it helps!