Well, your bmp, is it done the standard way of having in effect the 8 pictures side by side in say a 2 row, 4 column format? If so you have to copy the relevant "frame" out of that picture and place it on the screen
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
As I said you need to copy out the relevant "frame" from within your big picture. Doing it into an array is often easiest to code with later.
so if your picture was in the format
1 2 3 4
5 6 7 8
(numbers representing your man in a frame)
you use some maths, to extract each of the bitmaps (either by calculating the size of the picture given the original size of the image and the number of "frames" wide and tall, or by specifying them, and then copy that section into a new picture in your array of mini pictures constituting a frame.
Then to play the animation you would use a timer (or similar) to change the image to the next in rotation every interval you pick.
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190
There are ways you could improve it, but its on the right track.
Something you might want to investigate are the "mod" or % maths functionality
LizR
Posting Virtuoso
1,791 posts since Aug 2008
Reputation Points: 196
Solved Threads: 190