Loading an array of images with Superstrict on
BlitzMax Forums/BlitzMax Beginners Area/Loading an array of images with Superstrict on
| ||
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? |
| ||
You need square brackets for arrays - just like the ones you use to declare it. |
| ||
lol thanks, I knew it'd be something obvious like that :) |