mamwalter Posted March 11, 2014 Share Posted March 11, 2014 is it possible to use:.input.enableDrag()on a graphic shape ? what should be the best way to drag graphics ? i'm using Phaser 1.2. Thanks by advance. Link to comment Share on other sites More sharing options...
rich Posted March 11, 2014 Share Posted March 11, 2014 No Graphics objects don't have an InputHandler. You'll need to do this:sprite = game.add.sprite(100, 100, graphics.generateTexture());Then enable input on the Sprite instead. Link to comment Share on other sites More sharing options...
mamwalter Posted March 11, 2014 Author Share Posted March 11, 2014 thanks a lot, an other small question:.generateTexture()does not automatically set power-of-two bounds for my graphic ? or am i using it wrong. Link to comment Share on other sites More sharing options...
rich Posted March 11, 2014 Share Posted March 11, 2014 Nope, it doesn't force power of 2. Link to comment Share on other sites More sharing options...
Recommended Posts