Jump to content

Using GSAP & SVG?


Mike018
 Share

Recommended Posts

I'm new to canvas & phaser, but I've been using SVG with GSAP a lot recently and wondering if they can play well with Phaser. I'm pretty new to playing around with raster images, but it might seem good to have all your basic images in SVG and then it converts it to PNG based on the resolution of the device, are people doing this?

And what are your methods for animating UI in canvas? I'm used to the timeline and staggering GSAP offers with DOM based UI, does Phaser have some similar ways for staggering and timing elements or do most people tap into other more robust tweening libraries?

Link to comment
Share on other sites

You can use GSAP with Phaser quite happily, to tween whatever you like.

SVG rendering in Pixi isn't supported though, SVG shapes just get rendered to images and tend to end-up looking pretty poor as a result. See this still on-going feature request from nearly 2 years ago: https://github.com/pixijs/pixi.js/issues/936

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...