Zampano Posted February 2, 2017 Share Posted February 2, 2017 Hey there! I'm extending the button class right now and I was wondering if it is possible to call a custom function when the mouse hovers over the button, since it already does the checking to change the pointer. MyButton.prototype._pointerOverHandler = function() { console.log("check"); }; This doesn't do the trick, I guess because _pointerOverHandler is a protected internal function. If there is no better way then to check for mouseover myself in the buttons update cycle, then so be it, just tell me - I just want to make sure I don't miss anything. Any help is greatly appreciated! Thank you Link to comment Share on other sites More sharing options...
samme Posted February 2, 2017 Share Posted February 2, 2017 Use Phaser.Button.html#onInputOver Link to comment Share on other sites More sharing options...
Recommended Posts