Question:

C# for PC Pocket: how to include an animation?

by  |  earlier

0 LIKES UnLike

I'm learning C# programming for Windows Mobile. I'm trying to make a videogame, so i need animations.

how can i include a gif animation? I loaded one in a pictureBox, but it appears static.

I would be useful too if i can use a flash aniamtion. I searched for a flash control, but it's only usable at PC app, not for PC pocket and smartphones... how could i do it?

BTW, i would also like to know how to include a video in my project.

Thanks! :)

 Tags:

   Report

1 ANSWERS


  1. To include animations you're going to want to create an array of images..a big image that contains multiple frames.  

    Unfortanately I would recommend avoiding picture boxes and learn how to load bitmaps and draw them to the screen manually - ie a bitblt().  Once you're able to load the entire image you can copy (bitblt) the appropriate portions to the screen as needed.  Draw each frame in order to create an animation.

    There isn't a simple way to handle animated gifs that I know of.

    As for flash - unless you want to create a flashlite game you're not going to be able to create animations using flash.

    Take a look at www.codeproject.com.  There are some great example games with source code that you can learn from.

    You may also find some useful information at www.windowsmobiledn.com.

    Good luck and be patient

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.