Another question about graphics

Blitz3D Forums/Blitz3D Beginners Area/Another question about graphics

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.

your post didn't exactly make it out right. Theres a createimage function, that can create an image that is layered upon a virtually unlimited amount of images.
so try:
Graphics 800,600,16,1

;this next line creates a128pixel by 128pixel image with 32 subframes so to say 2 is for 2 frames

image=Createimage(128,128,2)

;then create a filled  box at 0,0 128 by 128 colorwhite 
color 255,255,255rect 0,0,128,128,1

;then load/grab the image and save it as image,frame0
;note the fram starts as 0, like an array
grabimage image,0,0,0 

;then change the color of the box, its grey now
color 128,128,128:rect 0,0,128,128

;grab the second frame, frame 1
grabimage image,0,0,1

;okay now clear the screen and flip em
clscolor 64,0,0
cls

;Run a loop and switch the images from white to grey,x is 
;the pointer

x=0
while not keyhit(1)
x=x+1
drawimage image,100,100,x
If x=1 then x=0
delay 300
wend

end


There is a way to flip rotate the image if that is what your looking for. I'm not sure how to do it in blitz2d, but its really easy to do in blitz 3d. In b3d you create a flat mesh, only needs to be 4vertexes and 2 triangles so its sqaure, and then just change the texture coordinates of the vertexes and that gives you 90 deg of rotation each way, but you can just roate the mesh too. Otherwise your gonna have to do it in paint or something.