thanks and I just want to know how to change the picture of the bird to another one.
I understand it is one picture contains a series of pictures identical in width, and split
in code.. but I don't know how to do that,, your help is appreciated.
hi beja
its very simple
in the code you are loading the picture of the birds
'load bird frames
img_BirdStrip = IU.LoadscaledBitmap(File.DirAssets, "bird.png",-1,-1,True)
then with a loop you add all 12 frames to img_Bird() array:
and for every frame you start to crop (cut) the image in his left position, but first we need to calculate the left position of every frame, how? like this:
i have a strip of 4 birds and every bird has 3 frames so i have 12 images
now every frame is 34 pixel widght (how i know? calculate the lenght of the image strip / 12)
frame 1 would be located in the strip on
left= 0
top =0
widht & hight = are 34
frame2:
left 34
top0
widht & hight are = 34
.....
now in the loop you use the integer x and calculate the left position
frame 1 is x0 that means x*34 = 0 that means left of the first frame would start on 0
frame 2 is x1 that means x*34 = 34 that means left of the second frame would start on 34
.....
and now u know the left of every frame and just crop it
For x = 0 To 11
img_Bird(x) = IU.Crop(img_BirdStrip,x*34,0,34,24) 'crop (cut) the frame on his left location
img_Bird(x) = IU.CreateScaledBitmap(img_Bird(x),8.5%x,4%y,True)
Next
i hope i could help you
**********************
@
ilan12041981 whats lib you use to make a fade in splash when start the app ?
sorry dougles but i cannot see any fade animation in my app
do you mean the translate animation of the hat panel? if yes its the ANIMATION PLUS library from informatix