eightfourzerofive Posted April 7, 2020 Share Posted April 7, 2020 Hi all, Fairly new to Pixi here, currently porting an old project built in canvas to Pixi. I'm wondering how to correctly tween in Pixi v5? I'm finding a lot of outdated info so I'm kind of confused. Some point towards a GSAP plugin that I don't think exists anymore. There's also a couple of githubs with plugins that don't seem up to date anymore. What's my best option for this situation? ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 7, 2020 Share Posted April 7, 2020 GSAP plugin exists and works https://pixijs.io/examples/#/gsap3-interaction/gsap3-basic.js > currently porting an old project built in canvas ... that measn you already have some kind of tweens there, right? Just connect it to pixi instead of canvas. Yes, pixi is declarative, you have to move objects and not draw stuff manually. But for tweens this difference isnt critical. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 7, 2020 Share Posted April 7, 2020 Welcome to the forums! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 7, 2020 Share Posted April 7, 2020 I hope this and other articles in wiki will make it more clear for you: https://github.com/pixijs/pixi.js/wiki/v5-Custom-Application-GameLoop Quote Link to comment Share on other sites More sharing options...
eightfourzerofive Posted April 7, 2020 Author Share Posted April 7, 2020 47 minutes ago, ivan.popelyshev said: GSAP plugin exists and works https://pixijs.io/examples/#/gsap3-interaction/gsap3-basic.js > currently porting an old project built in canvas ... that measn you already have some kind of tweens there, right? Just connect it to pixi instead of canvas. Yes, pixi is declarative, you have to move objects and not draw stuff manually. But for tweens this difference isnt critical. Yeah I'm already using a library, just wondering if there was a cleaner way (or even something built-in) for tweens as the other project ended up being a bit of a frankenstein. Thank you for helping! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 7, 2020 Share Posted April 7, 2020 Nope, nothing is built-in, pixi gives you all the freedom with tweens you can take. 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.