| 01-02-2004, 09:57 PM | #1 |
is it possible? like for example, I have 20 pre-defined Regions and their usual name is gg_rct_Area_01 until _20. Is there a nice way to put it into a loop? Or must I resort to 20 ifs/elseifs? Likewise for camera objects, and a host of other stuff. Currently I've got a couple of global variables just to store them so I can call them array-style, but I only need these things near the start of the game, so it's somewhat pointless to have a global region/camera object variable array, initialize and use it within the 1st minute and never come back to them. Edit:Typo |
| 01-03-2004, 02:38 AM | #2 |
Try putting all those variables in a array, that should make it easier. |
| 01-03-2004, 04:24 AM | #3 |
I agree, stick em in an array. It's not entirely ideal because the initlization trigger will have all the reptitive set commands, but look on the bright side, anything using arrays is likely to be way faster than converting a string to variable name. |
