Jump to content
Search Community

boonier

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by boonier

  1. Hi

     

    Thanks for getting back. Yep that's what I thought: the draw loop is repeatedly creating new tweens. I'm going to refactor what I've done, but I need to detect the collision with the mouse another way to reduce the data. 

     

    Are the fundamentals of how I've implemented TweenLite looking ok to you though?

     

    Cheers

     

     

  2.  

    Hi 

     

    I'm new to Greensock! I've tried implement a TweenLite colour tween into my existing canvas based sketch, and the tween works for the rollover and out, but the out tween doesn't return to the colour specified.

     

    I've a feeling that I'm trying to shoehorn GS into a pattern that is not compatible with GS. Is it still relevant to use update() and draw() with window.requestAnimationFrame?

     

    Codepen below:

     

    See the Pen zPPBje?editors=0010 by boonier (@boonier) on CodePen

     

    Many thanks

    Si

     

×
×
  • Create New...