Results 1 to 2 of 2

Thread: Timed Animation

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    8

    Timed Animation

    Hey all
    I have 180 pictures that I would like to cycle through in exactally 60 seconds.
    The timing is crucial for the right effect. At most the total delay could be of 1 second - meaning showing the pics' in 61 secs'.
    The pictures are named pic1 threw pic180.
    Now I know this could be done with the use of timer going off every one third of a second i.e. 333 thousanth of a second. After the timer will go off it will show picture pic[i+1], when i is the current pic number.
    However, it is quite accurate and I was wondering if I could perhaps pre-load the pics' prior to the animation start.
    Keep in mind that if I'm pre-loading a few images I will constantlly need to load more and to un-load what has been already used.
    10x in advanced David.

  2. #2
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    Whow big are the pictures?
    If they are small enough you might show them using a pictureboxarray.
    picturebox(1) as the first picture picturebox(180) as the last.
    Using the GetTickCount api count the 333 millisec's and change from showing picturebox(i) to ..(i+1) (i.e picturebox(i).visible=false and ..(i+1).visible=true) At he end (i=180 ) set i=1.
    Hope that help's
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width