Loading an array of images with Superstrict on

BlitzMax Forums/BlitzMax Beginners Area/Loading an array of images with Superstrict on

Farflame(Posted 2009) [#1]
Hopefully a simple answer to this one, but I can't find it in any tutorials. I've got the hang of Superstrict and want to use it in my code, but it won't let me past my loading of my array of images.

The code is :

Global MonsterImage:TImage[2]
MonsterImage(0)=LoadImage("graphics\greywizard2.bmp")
MonsterImage(1)=LoadImage("graphics\goldendragon.bmp")
Global LightningImage:TImage=LoadImage("graphics\lightning.bmp")

I'm getting errors, what am I doing wrong here?


Brucey(Posted 2009) [#2]
You need square brackets for arrays - just like the ones you use to declare it.


Farflame(Posted 2009) [#3]
lol thanks, I knew it'd be something obvious like that :)