dthrasher90 Posted April 23, 2017 Share Posted April 23, 2017 Can I use a button outside of phaser to call a function in a phaser state Like: html button linked to something function And in phaser: var somethingState = { Function something (){something......} } Link to comment Share on other sites More sharing options...
bruno_ Posted April 23, 2017 Share Posted April 23, 2017 Yes. Phaser is a javascript library like any other. You can have html buttons and events that call functions of your game, the same way you call any function on javascript. Link to comment Share on other sites More sharing options...
Recommended Posts