davidzhu Posted December 18, 2013 Share Posted December 18, 2013 i just start using phaser , i wonder is it posible to skew image in phaser? Link to comment Share on other sites More sharing options...
feiss Posted December 19, 2013 Share Posted December 19, 2013 It seems the Sprite class does not support it yet, you may have to access to Pixi stuff, if that is possible.. don't know really, sorry :/ Link to comment Share on other sites More sharing options...
tackle Posted June 21, 2014 Share Posted June 21, 2014 Anyone know if this is possible? Link to comment Share on other sites More sharing options...
Team_Q Posted June 21, 2014 Share Posted June 21, 2014 Check out this post regarding pixi from a while ago:http://www.html5gamedevs.com/topic/1300-how-to-use-transform-in-displayobject/ Link to comment Share on other sites More sharing options...
lewster32 Posted June 22, 2014 Share Posted June 22, 2014 Not natively within either Phaser or pixi - you'd either have to use BitmapData along with your own skewing routine (or Google for a canvas lib which does this) or possibly use a pixi filter though I have to confess I know very little about writing or implementing filters. Link to comment Share on other sites More sharing options...
tackle Posted June 23, 2014 Share Posted June 23, 2014 Not natively within either Phaser or pixi - you'd either have to use BitmapData along with your own skewing routine (or Google for a canvas lib which does this) or possibly use a pixi filter though I have to confess I know very little about writing or implementing filters. Slightly off topic - do you know if Pixi is purely WebGL? Or does it handle Phaser's Canvas rendering as well? Here's a pretty cool use of skewing in a HTML5 game:http://m.spele.nl/games/brainteaser/jelly-madness/index.php?v=3 Link to comment Share on other sites More sharing options...
lewster32 Posted June 23, 2014 Share Posted June 23, 2014 Pixi forms the basis of Phaser's rendering, so Phaser does WebGL and canvas because pixi does too. I've had a play with some ctx.setTransform stuff using BitmapData and it looks like skewing is possible with that, though it's not totally straightforward and requires a bit of knowledge of transform matrices. tackle 1 Link to comment Share on other sites More sharing options...
Recommended Posts