Ross Posted April 2, 2014 Share Posted April 2, 2014 Hey all, Ok, I'm getting things converted over to 2.02 and I've run into a little snag. My button images are getting cut off (see image) Heres the code:this.game.load.spritesheet('begin-butt', 'PATH',115,26,3);this.game.load.spritesheet('gameControls-butt', 'PATH',115,26,3);this.game.load.spritesheet('beginparrallexbutt', 'PATH',115,26,3);this.playButton = this.game.add.button(0, 0, 'begin-butt', this.startGame,this,2,1,0);this.playButton.x = (this.game.width/2) - (this.playButton.width/2);this.playButton.y = this.preloadBar.y + this.preloadBar.height;this.gameControls = this.game.add.button(0, 0, 'gameControls-butt', this.gameControl,this,2,1,0);this.gameControls.x = (this.game.width/2) - (this.gameControls.width/2);this.gameControls.y = this.playButton.y + this.playButton.height; this.parallex = this.game.add.button(0, 0, 'parallex-butt', this.parallax,this,2,1,0);this.parallex.x = (this.game.width/2) - (this.parallex.width/2);this.parallex.y = this.gameControls.y + this.gameControls.height;I'm sure it's something I'm missing, but I just don't see it. Thanks for any help. Ross Link to comment Share on other sites More sharing options...
Ross Posted April 2, 2014 Author Share Posted April 2, 2014 Never mind.... I'm having one of "THOSE" days.... I had the width and height wrong. Sorry for cluttering up the board. Link to comment Share on other sites More sharing options...
Recommended Posts