These are chat archives for pixijs/pixi.js

24th
Dec 2015
Bar Ziony
@bartzy
Dec 24 2015 09:22
OK, thanks
@englercj Do you perhaps have any input about touch latency, especially on Android devices?
I will provide a demo, will prepare it
Bar Ziony
@bartzy
Dec 24 2015 20:44
If I want to have an object that I extend from Container, which has an image as a child, and a mask on it.
When I do that and in the constructor create the image and mask as sprites and add them as children, the container gets an implicit width and height (of the sprites)
Can I avoid that behavior somehow?
Or I shouldn't extend from Container (i.e there's some better way of extending Pixi in the manner) ?
Ivan Popelyshev
@ivanpopelyshev
Dec 24 2015 21:49
you can override its getBounds()
to return new Rectangle(real coords)
also dont use width/height, use getBounds().width getBounds().height
Ivan Popelyshev
@ivanpopelyshev
Dec 24 2015 23:37
ugh, better to show us an example, I dont understand whats going on anymore