Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Creator on Sat 07/05/2011 13:38:36

Title: Global Arrays (SOLVED)
Post by: Creator on Sat 07/05/2011 13:38:36
Probably a bit of a noob question, especially since I've been using AGS and C++ for over 4 years, but can you create arrays accessable from any script in AGS? I can't seem to create one in the Global Variables pane.
Title: Re: Global Arrays
Post by: Khris on Sat 07/05/2011 14:43:23
You have to create them manually, like this:

header:
import int array[10];

script:
int array[10];
export array;
Title: Re: Global Arrays
Post by: Creator on Sat 07/05/2011 16:01:03
Ah, OK. Awesome.
Thanks, Khris.
Title: Re: Global Arrays (SOLVED)
Post by: monkey0506 on Sat 07/05/2011 17:53:37
Also be sure to check out dynamic arrays in the manual. They're somewhat limited right now, but I know a thing or two more than what the manual has to say about them. ;)