Rotating Image
BlitzPlus Forums/BlitzPlus Beginners Area/Rotating Image
| ||
I'm writing a racing game.. and.. my whells are bitmap images.. and i need to make them rotate.. but.. rotate image it's tooooooooooooooo slow.. how i can make it works.. without having 1/2 frame per year =P? |
| ||
There are some 3rd party rotation functions for Blitzplus that are much faster than the built-in one - you may want to check the code archives. Alternatively, depending on how many images you have that need to be rotated, you can also make the rotated sprites in advance, and simply load them opn startup by your program rather than trying to rotate them in real time. |
| ||
i used pre-drawn images eg: Global gfxArrowRight = LoadAnimImage ("Bitmaps\Arrow Right Strip 4 x 157 x 42.bmp", 157, 42, 0, 4) : If gfxArrowRight = False Then RuntimeError "Can't locate the 'Graphics File'." LoadAnimImage (names$, width of each image, height of each image, start number - use 0, number of images) Just make sure all the images are the same size and positioned correctly in the strip. |