xdiepx Posted May 11, 2015 Share Posted May 11, 2015 In createjs you do something like this: createjs.Ticker.addEventListener("tick", handleTicker); How would u do it for PIXI? I tried this but this didn't work. PIXI.Ticker.addEventListener("tick", handleTicker); If you could help me thanks. Quote Link to comment Share on other sites More sharing options...
xerver Posted May 13, 2015 Share Posted May 13, 2015 I recommend reading through the Ticker class source, it is well documented: https://github.com/GoodBoyDigital/pixi.js/blob/master/src/ticker/Ticker.js You are looking for the ".add" method. Quote Link to comment Share on other sites More sharing options...
xdiepx Posted May 13, 2015 Author Share Posted May 13, 2015 Oh i managed to get around it and used TweenMax ticker, but ill have a read of the PIXI.Ticker. Cheers xerver 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.