Does anyone know what this compiler error means? I can't figure it out.
It points to my function inside my type.
Strict
framework brl.max2d
Graphics 640,480,0
'instantiate
Global imgBlue:Image = Image.Create("gfx/blue.bmp")
Global imgGreen:Image = Image.Create("gfx/green.bmp")
Global imgYellow:Image = Image.Create("gfx/yellow.bmp")
Global imgRed:Image = Image.Create("gfx/red.bmp")
Global imgOrange:Image = Image.Create("gfx/orange.bmp")
Global imgPurple:Image = Image.Create("gfx/purple.bmp")
While Not KeyDown(KEY_ESCAPE)
Wend
Type Image
Global ImageListCount:Int
Global ImageList:TList = New TList
Field xpos,ypos:Int
Field image:TImage
Field AlphaLevel:Int
'create
Function Create:Image(strPath:String)
Local img:Image = New Image
img.image = LoadImage(strPath)
ImageList.AddLast img
Return img
End Function
'constructor
Method New()
'ImageListCount:+1
xpos = (GraphicsWidth() / 2)
ypos = (GraphicsHeight() / 2)
End Method
End Type
Type ExplodeIntoParticles
Global ParticleList:TList = New TList
End Type
|