Jump to content

Button Images getting cut off - 2.02


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)




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.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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