Hi Brucey :)
I would like to load some gif instead of animated tile sheet.
Unfortunately I suspect there is a problem with incbin(ed) image.
"incbin::" stream refuse to work as intended.
Am I Wrong somewhere ?
I would like to load some gif instead of animated tile sheet.
Unfortunately I suspect there is a problem with incbin(ed) image.
"incbin::" stream refuse to work as intended.
Am I Wrong somewhere ?
' TEST 7 ' ' Load and display an animated gif using incbin:: - loading all frames into a TImage SuperStrict Framework BaH.FreeImage Import brl.glmax2d IncBin "anim.gif" Graphics 800,600,0 ' load the animated image Local image:TImage = LoadAnimFreeImage("incbin::anim.gif") If Not image Then DebugLog("Couldn't load...") End End If Local count:Int = image.frames.length Local pos:Int = -1 While Not KeyDown(key_escape) pos:+ 1 If pos = count Then pos = 0 End If Cls DrawImage image, 400 - ImageWidth(image)/2, 300 - ImageHeight(image)/2, pos Flip Wend End