Sign in to follow this  

Pixi plugin issues

Recommended Posts

I was playing with pixi plugin, with the intention to add some filters to my game. I noticed two problems:

1. When I add a filter to my Container which only has one circle shape (rotating in update function). The filter is just a square,  with the width of the circle radius, rotating inside the circle.

2. I have two progress bars in my game, which are simply rectangles changing their width in update function by MyContainer.shapes[0].shape.width. After adding pixi plugin rectangle width no longer updates. The width values are correct but there is no update on the screen.

I'm using latest pixi plugin version with 2.8.2dev

Share this post

Link to post
Share on other sites

These should be now fixed.

Update PixiJS plugin to 1.2.4 and engine to latest dev.

Note that in WebGL, Graphics shapes doesn't get updated if you just change the dimensions of a shape. Instead you need to clear the graphics object and draw the shape again. In your case, better solution would be to draw the shape with it's max width, and then just change the x scale of the graphics object. Just like in this loader tutorial:


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.