image handles

Blitz3D Forums/Blitz3D Beginners Area/image handles

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Have you set a graphics mode up first?

Is the pacman image in the root folder of where your program is saved?

Try:
image=LoadAnimImage("pacman_up.bmp", 50, 50, 0, 1)
DebugLog image

If the result is 0 then either Blitz cannot find the or the image file is invalid.

Another thing, your example above is using only 1 frame of animation. Is this right?

Also locate doesnt seem to work for me
Are you using BlitzPlus? If so the locate command has been removed.

See if this works:
Graphics 640,480
SetBuffer BackBuffer()
image=LoadAnimImage("pacman_up.bmp",50,50,0,4) ; <-4 frames of animation
MaskImage image,255,0,255
DrawImage image,100,100
Flip
WaitKey
End