Arrays of types?

Blitz3D Forums/Blitz3D Beginners Area/Arrays of types?

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.

Hi!

I'm just getting back into Blitz after surviving my first and second years of university, including the University Semester from Hell (which I've just survived)... Anyway, it appears that I've forgotten most of what I had learned before I took my break from Blitz, and that includes how to make arrays of types.

So, say I want 100 enemies, all with their own X and Y variables. I'd create a type:

Type TYPE_Enemy
     Field X_Pos
     Field Y_Pos
End Type


...but then how would I make an array that uses the type? I want to be able to call it like this:

Enemy(35)\X_Pos = 20
Enemy(27)\Y_Pos = 250


Is this possible? If so, how can you do this?