0 Replies Latest reply on Feb 1, 2013 12:34 AM by drawingstars

    Using code to save a lot of time

    drawingstars

      Hey all

       

      This is a what I am working on at the moment:

       

      https://www.dropbox.com/s/x86laqtic481wpc/homepage.zip

       

      This is an animation that has a object that slides over, then a text box comes up and waits for a while.

      The problem is that there will be six different animations all in one (10 seconds each with a final time of 60 seconds)  and i would rather program in some code such as:

       

       

      if current time < 10

           then use this image and this image

      else if current time > 10 and < 20

           then use this image and this image

      and so on...

       

      Also I would like a similar function for the previous and next buttons

       

      if current time < 10

           then prev button moves current time to 0

           then next button moves current time to 20

      else if current time > 10 and < 20

           then prev button moves current time to 10

           then next button moves current time to 30

      and so on...

       

      Is it possible to code this in instead of duplicating all the animation 6 times over?

      the animation paths themselves are always the same.

       

      Thanks!