Array of Types

BlitzPlus Forums/BlitzPlus Programming/Array 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.

If you make a type that has a field like AlienType% and you only want to process a certain type of aliens it is much better to use an array for that type of alien instead of this sort of code ...

For a.Alien = each Alien
   If a\AlienType = 1 then
      ;some code
   EndIf
Next