Jump to content

Tweening in pixi


eightfourzerofive
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...