Animation project with random sound

Merlot2309

Active Member
Licensed User
Longtime User
Hello,

Hope this is a usefull little animation project for others as well.

I used AGraham's GifDecoder demo to get started and added a few .wav files + random.

Until now I can't get the following to run the way I want:
1.- Source background image is 600x800 and my device is 320x480
2.- To play the wav files, eg. max. 2 at a time, have a pause and then start another one at random
3.- The frames of the snake should move much slower
4.- The butterfly should follow a path over the screen (the snake as well).

Extra info:
I tried to implement the example: http://www.b4x.com/forum/basic4android-share-your-creations/8030-reading-sprite-sheet.html
and got stuck on the canvas (I think, ha, ha).
Using the canvas made the background picture look quite ugly (correct screen size though) and I could not figure out how to get the animations visible (tried everything .........)

1.- I would like to use only one source background file for various screen sizes.
2.- Start playing a .wav file at random, add another one at random, repeat at random, etc.
3.- Butterfly speed is ok, but snake movement is way to fast
4.- I think I have to use MShihrer's example for this as well, since I didn't find this function in the GifDecoder's lib.

I am looking forward to get help.

Greetz,
Helen.
 

Attachments

  • AnimationProject.zip
    253.6 KB · Views: 263
Top