LoadAnimImage
Blitz3D Forums/Blitz3D Beginners Area/LoadAnimImage
| ||
help |
| ||
the picture is not animating and I don't know what I am doing wrong Graphics 1200,600,256 Global map,x,y SetBuffer BackBuffer() map=LoadAnimImage("map1.bmp",1200,624,0,3) Repeat Cls If MilliSecs() > x + 500 Then x=MilliSecs() y=(y+1) Mod 3 End If DrawImage map,0,0,y Flip Until KeyHit(1) WaitKey KeyHit(1) End |
| ||
Firstly I doubt there is a color depth of 256 bits on your graphics card. Secondly 1200x600 is a very unusual resolution to display....I'm surprised it even gets past the first statement. How long has your computer been running. ..if millisecs has gone wrapped around then because the default value of x is zero you will not enter that if statement for a long time. Other than that looks fine....if the image couldn't be found it would simply crash the way you have it. |
| ||
All of thats fine, it finds the image and displays the first frame but never excedea to the next 2. Ive tried different images and it doesnt work with them either. |
| ||
Something must be wrong with my if/then statement |
| ||
Check if milliseconds is negative....or set x before entering the loop to milliseconds. |