csimpson.web Posted August 7, 2014 Share Posted August 7, 2014 Hi , I'm building a jigsaw and i need to be able to disable the drag property when the piece has been placed .. have tried all the variations of = disable , but nothing seems to be the right one .. how do you disable the drag , when dropped ? Link to comment Share on other sites More sharing options...
lewster32 Posted August 7, 2014 Share Posted August 7, 2014 You need to set draggable to false:sprite.input.draggable = false; Link to comment Share on other sites More sharing options...
csimpson.web Posted August 8, 2014 Author Share Posted August 8, 2014 haha , oh crap ... searched for ages , as always lewster, your a legend . thankyou lewster32 1 Link to comment Share on other sites More sharing options...
lewster32 Posted August 8, 2014 Share Posted August 8, 2014 No worries, I wasn't sure myself for a moment - had to look it up Link to comment Share on other sites More sharing options...
csimpson.web Posted August 8, 2014 Author Share Posted August 8, 2014 Think i figured out why the other stuff hadn't affected, The listener was jumping out in to the window, had to rebind 'this' to get the above code running... whoop .. another game finished .. another 3 left to build ... Link to comment Share on other sites More sharing options...
alpertayfun Posted April 20, 2015 Share Posted April 20, 2015 save my life : ) thank you dude. Link to comment Share on other sites More sharing options...
Recommended Posts