Global Arrays (SOLVED)

Started by Creator, Sat 07/05/2011 13:38:36

Previous topic - Next topic

Creator

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.

Khris

You have to create them manually, like this:

header:
Code: ags
import int array[10];


script:
Code: ags
int array[10];
export array;

Creator

Ah, OK. Awesome.
Thanks, Khris.

monkey0506

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. ;)

SMF spam blocked by CleanTalk