deerob4 Posted April 4, 2014 Share Posted April 4, 2014 Hello, I'm trying to increase the height of my background sprite by a certain amount. Is there a way to do this in the framework? Thanks! Link to comment Share on other sites More sharing options...
Heppell08 Posted April 4, 2014 Share Posted April 4, 2014 player.scale.y = 2:// exampleAnything above 1 is bigger and below is smaller deerob4 1 Link to comment Share on other sites More sharing options...
drhayes Posted April 4, 2014 Share Posted April 4, 2014 You can also set the scale to negative numbers to flip the image. Link to comment Share on other sites More sharing options...
rich Posted April 8, 2014 Share Posted April 8, 2014 You can also just do Sprite.height = whatever (value given should be pixels, not percentage) Link to comment Share on other sites More sharing options...
Heppell08 Posted April 8, 2014 Share Posted April 8, 2014 You can also just do Sprite.height = whatever (value given should be pixels, not percentage) Oooh is that new? Never knew that was in? Nice Link to comment Share on other sites More sharing options...
rich Posted April 8, 2014 Share Posted April 8, 2014 New since Phaser 1.0 I guess Link to comment Share on other sites More sharing options...
Recommended Posts