I currently have a timer that ticks and changes the label to count down the seconds.
Is is possible and if so how do i change and image in and image box to a custom value for each for example
Label=1 imagebox1=1.jpg
Label=2 imagebox1=2.jpg
Or would it the easier to go off the timer tick value?
I currently have a timer that ticks and changes the label to count down
Share
I would make a Sprite class. Then I would use the value from the ticker to cycle through the various bitmaps I need. But if the images are small enough resolution combine them in one Image and use an AniSprite…
So in this class instead of cycling through different bitmaps, I made one big bitmap that has each frame of the animation one after another. (use photoshop) the parameters tell the position on the screen x and y, the width and height of the frame (so each image), and the number of frames.
executing AniSprite.animate() will switch the target to the new frame, thus you draw your sprite as