m2jalali Posted December 5, 2015 Share Posted December 5, 2015 hii used this code game.input.deleteMoveCallback(moveIndex);it is working phaser 2.3.0but it is not working in phaser 2.4.4how can i solved my problem? Link to comment Share on other sites More sharing options...
ForgeableSum Posted December 6, 2015 Share Posted December 6, 2015 Unlikely. Can you share your code? Sometimes I will set a callback twice, defining moveIndex with two separate numbers, delete one and the other is still there. I would check for that. Link to comment Share on other sites More sharing options...
m2jalali Posted December 6, 2015 Author Share Posted December 6, 2015 i used this codemoveIndex = game.input.addMoveCallback(this.moveTile, this);console.log("moveIndex :"+moveIndex);in console showmoveIndex :undefined Link to comment Share on other sites More sharing options...
ForgeableSum Posted December 6, 2015 Share Posted December 6, 2015 Try removing this:moveIndex = game.input.addMoveCallback(this.moveTile); It could be that your context is wrong. Link to comment Share on other sites More sharing options...
Recommended Posts