sebrofjr Posted October 24, 2013 Share Posted October 24, 2013 I'm trying to implement TweenJS with Pixi and I have it working by adding the useTicks:true parameter and then calling createjs.Tween.tick(); in the requestAnimFrame. I would like to have it working based off of time though instead of ticks. Any idea how to implement this? The TweenJS docs state a custom ticker function is required:http://www.createjs.com/Docs/TweenJS/modules/TweenJS.html Tweenjs requires a ticker function, which is included in EaselJS. If you are not using EaselJS, you must build your own ticker function that calls tick on the tweens. Quote Link to comment Share on other sites More sharing options...
xerver Posted October 24, 2013 Share Posted October 24, 2013 I suggest looking into Greensock's Tween libraries: http://www.greensock.com/ Quote Link to comment Share on other sites More sharing options...
powerfear Posted October 24, 2013 Share Posted October 24, 2013 If you want to use the ticker from EaselJS and not have to make your own or include the whole EaselJS library, you can do that by building TweenJS yourself. 1. Download the ticker file here: https://github.com/CreateJS/EaselJS/blob/master/src/easeljs/utils/Ticker.js2. Download the TweenJS source here: https://github.com/CreateJS/TweenJS3. Copy Ticker.js in src/tweenjs4. Add "../src/tweenjs/Ticker.js", right after "../src/createjs/events/EventDispatcher.js", in build/config.json5. Run grunt Quote Link to comment Share on other sites More sharing options...
sebrofjr Posted October 25, 2013 Author Share Posted October 25, 2013 Thanks, I will give that a shot. I would love to use Greensock and normally would, but for the type of corporate project were doing the licensing would be an issue. Quote Link to comment Share on other sites More sharing options...
sebrofjr Posted October 25, 2013 Author Share Posted October 25, 2013 After talking with our PM's and legal we may be able to work something out with GreenSock. Fingers crossed, i love that framework in AS3. Still going to go the route of trying Grunt out too as I have been interested in that as well. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.