goowik Posted January 25, 2016 Share Posted January 25, 2016 Hi, Is it possible in Phaser to actually make a certain mask area clickable? This to prevent limitation to squared click fields. Thank you, Peter Link to comment Share on other sites More sharing options...
megmut Posted January 25, 2016 Share Posted January 25, 2016 I'm not sure what you mean by a mask area? I have achieved something similar to this by disabling all click-able areas. When you hover over the sprite you want to click down, just simply add an input.over function to change the input to enabled. Something like: mask1.events.onInputOver.add(function(){ mask1.inputEnabled = true; }, this); mask1.events.onInputOut.add(function(){ mask1.inputEnabled = false; }, this); Link to comment Share on other sites More sharing options...
goowik Posted January 25, 2016 Author Share Posted January 25, 2016 Well a mask basic functionality is to hide show certain parts of a sprite/group/map/.... I also want the functionality to be so 'ONLY' the shown parts are clickable Link to comment Share on other sites More sharing options...
Recommended Posts