Stephen Posted December 28, 2013 Share Posted December 28, 2013 Hello, I have recently started prototyping with Phaser and love how easy it is to work with! Currently I'm making use of the click, drag, and snap capabilities of the InputHandler. By default my sprites always snap with a grid relative to x:0, y:0. This is not the behavior I would like, I would rather snap to a grid that is relative to some other point. I noticed that this class has a snapOffset property which looks to solve my problem. But after looking through the source code this property doesn't seem to have been implemented. For now I have a custom Phaser.InputHandler.stopDrag which adds in the offset on release. Am I misusing snapOffset or has this feature yet to be implemented? Thanks Link to comment Share on other sites More sharing options...
rich Posted December 28, 2013 Share Posted December 28, 2013 That's an interesting requirement. It doesn't support it right now but if you file a GitHub issue we can flag it as a feature request and will move it to the work log. Link to comment Share on other sites More sharing options...
Recommended Posts