Archived

This topic is now archived and is closed to further replies.

alpha2

array in array

Recommended Posts

Im making a airplane game with scrolling backroud. I want to save enemy plane formations in arrays but then those arrays have to be in another array, how do i do that? type TSpriteClass = class of TSprite; TEnemyFormation = record c: TSpriteClass; x: Integer; y: Integer; end; const EnemyFormationTable1: array[0..3] of TEnemyFormation = ( (c: TAirPlane; x: 100; y: 0), (c: TAirPlane; x: 200; y: 0), (c: TAirPlane; x: 300; y: 0), (c: TAirPlane; x: 400; y: 0) ); Hope you understand what i mean.

Share this post


Link to post
Share on other sites
I don''t really see where the problem is...
here''s an example:

type
TMyArray = array[0..100, 0..100] of TWhatever;

var
ArrayInArray: array[0..20] of TMyArray;


or even

var
ArrayInArray: array[0..20] of array[0..20] of TWhatever;

Share this post


Link to post
Share on other sites