Jump to content

button hover feedback effect


Recommended Posts

Hi guys, I am looking for a solution to add an effect in addition to the callback for the over/hover state in the button instance, for instance in:

button = game.add.button(game.world.centerX, game.world.centerY, 'button', actionOnClick, this, 'hover' , 'out', 'down');actionOnClick(){ button call action.......}

Is it possible or how would you implement a callback for a hover sound effect and the concurrent hover button response in the hover positon? for instance:

button = game.add.button(game.world.centerX, game.world.centerY, 'button', actionOnClick, this, function , 'out', 'down');actionOnClick(){ button call action.......}function(){sound effect...hover effect...}

how would any of you go about implementing this efficiently if possible? thanks alot

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...