need help at Eachin :-(

BlitzMax Forums/BlitzMax Beginners Area/need help at Eachin :-(

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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:

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!