goodsocco Posted May 11, 2014 Share Posted May 11, 2014 I am trying to create a map where you touch and drag with your finger to move (like google maps) I am trying to do this with the activePointer and onDragStart but to no avail should I not be using a tileSprite for this? What is the best practice for making a draggable map? Link to comment Share on other sites More sharing options...
Pedro Alpera Posted May 11, 2014 Share Posted May 11, 2014 Why not drag a normal sprite and use a mask? Link to comment Share on other sites More sharing options...
goodsocco Posted May 11, 2014 Author Share Posted May 11, 2014 Why not drag a normal sprite and use a mask?Thank you for your response Pedro, can you point me to an example? I'm new with Phaser Link to comment Share on other sites More sharing options...
Pedro Alpera Posted May 12, 2014 Share Posted May 12, 2014 I have made this example: http://pedroalpera.com/phaser/playground/map_example/ The files are attached to this file, it´s just a rough sketch. map_example.zip Link to comment Share on other sites More sharing options...
stasuss Posted May 12, 2014 Share Posted May 12, 2014 May be this topic will be of help? http://www.html5gamedevs.com/topic/2410-drag-the-camera/ Link to comment Share on other sites More sharing options...
Recommended Posts