animation during loading
Blitz3D Forums/Blitz3D Programming/animation during loading
| ||
i need to play a 2D animation (with DrawImage command) during loading, but i don't know how.... help me please |
| ||
i need to play a 2D animation (with DrawImage command) during loading, but i don't know how.... help me please During loading what ? Guessing that you are loading a level, a map, or whatever, you can draw the image frame and then use Flip, this will render your animation while loading. Example: Global frame ;frame for your animated sprite Global max_frame ;the max frame for your animated sprite Load...blah blah show_animation() Load...blah blah show_animation() Load...blah blah show_animation() Load...blah blah show_animation() Load...blah blah show_animation() Load...blah blah show_animation() Load...blah blah show_animation() Load...blah blah show_animation() Load...blah blah show_animation() Load...blah blah show_animation() Load...blah blah show_animation() Load...blah blah show_animation() . . . Funtion show_animation() frame = (frame + 1) Mod (max_frame) Drawimage my_animated_sprite,x,y,frame Flip end function Hope this has sense for you. Anyway, the meaning of your post still remains obscure to me. Sergio. |