Jump to content
Search Community

boonier

Members
  • Posts

    4
  • Joined

  • Last visited

boonier's Achievements

2

Reputation

  1. Hey thanks for that, yep I've now reinitialised the blocks array on resize. Got the tweens working too, as @Sahil noted the events need to be singled out in the update function. Cheers guys Here's a link https://codepen.io/boonier/full/NwwXRz/
  2. Awesome. Thanks for your ideas, will have another look!
  3. 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
  4. 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: Many thanks Si
×
×
  • Create New...