eddieone Posted May 10, 2016 Share Posted May 10, 2016 When I try to add a button to a group, I get the undefined error. Why does that happen? this.create = function() { this.pathGroup = game.add.group(); this.pathGroup.create(50, 200, 'bamboo'); this.pathGroup.create(600, 170, 'bamboo'); this.treehouse = this.make.button(280, 50, 'treehouse'); this.treehouse.onInputUp.add(this.clickPlay, this); this.pathGroup.add(this.treeHouse); } Link to comment Share on other sites More sharing options...
eddieone Posted May 10, 2016 Author Share Posted May 10, 2016 Must of been tired yesterday, was a capitalization mistake. .-. Link to comment Share on other sites More sharing options...
Recommended Posts