Jump to content

Button Images getting cut off - 2.02


Ross
 Share

Recommended Posts

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)

 

post-7114-0-43920500-1396436747.jpg

 

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...