Jump to content
Search Community

BCI

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by BCI

  1. Fiddle is here: http://jsfiddle.net/nicktest2222/sV5Ug/74/

     

    So I'm preparing to build my timeline. I have a buildAnimation function that creates my sprite-sheet animations. If there is a better to way to go about doing this, please share some knowledge with a noob. I want to create my sprite-sheet animations up front and call them at certain points in my timeline. I don't need to build them on the fly. Any help would be GREATLY appreciated.

     

    I was expecting to use: Didn't work.

    tl.call(buildAnimation, ["title", 628, 510, 10, 4, 0.11])
    

    So I played around with this: Which kinda worked until...

    tl.add( TweenLite.delayedCall(-1, buildAnimation,  ["title", 628, 510, 10, 4, 0.11]))
    

    Until I added this after it, which caused the sprite-sheet not to work (or force itself to last frame)

    tl.add( TweenLite.delayedCall(-1, buildAnimation,  ["title", 628, 510, 10, 4, 0.11]));
      .to("#title", 0.5, {left:-1000}, "+=1.5");
    
  2. I'm having some performance challenges. Very new to Greensock and animation in general, so I'm not sure where my problem is coming from. 1 animated spritesheet at a time works very well, it's just when I try and put 3 in the same loop that it gets very sluggish.

     

    Can anyone help point me in a better direction? Maybe the way I'm attempting to build my timeline can be optimized? Any help would be greatly appreciated!

     

    Fiddle: http://jsfiddle.net/nicktest2222/sV5Ug/67/

    Full screen: http://jsfiddle.net/nicktest2222/sV5Ug/67/embedded/result/

     

  3. Example: http://mailinator.com/index.jsp

    The background is a static blue and the cloud image found here: http://mailinator.com/assets/img/clouds-s.png

    , just subtracts along the x-axis. 

     

    How would you duplicate this action in a timeline? I think I get the x:-1 and repeat:-1 part; I'm just not sure how you would reset the image so a small image can loop on forever?

     

    Any help would be greatly appreciated.

     

    Thanks.

     

  4. Using SoundManager2 library, my sound has already been created. I want to call the play function once my timeline reaches the correct point. Any ideas how I can do this? Thanks in advance.

    
    tl.set("#mod5", {visibility:"visible"}, "#mod5")
      // call soundManager --> soundManager.play('mod5')
      .staggerFrom("#e5", 0.5, {autoAlpha:0, x:180})
      .to("#e6", 0.5, {delay:1});

     

×
×
  • Create New...