Fixed the Button frame issue and Down states now work properly

This commit is contained in:
Richard Davey
2013-09-09 10:30:01 +01:00
parent 9b6c819e0e
commit 13d6ab512b
3 changed files with 53 additions and 44 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
// The function "clickedIt" will be called when the button is clicked or touched
button = game.add.button(game.world.centerX, 400, 'button', clickedIt, this, 2, 1, 0);
// Just makes the button origin set to the middle, we only do this to center the button on-screen, no other reason
// Just makes the button anchor set to the middle, we only do this to center the button on-screen, no other reason
button.anchor.setTo(0.5, 0.5);
}