jorgesereno Posted March 11, 2014 Share Posted March 11, 2014 Hello,I'm new with phaser and i'm looking some stuff on internet and some tutorials and i can't find a way to take a image ( width 1px and height 400px) and stretch them to fit all my examples width which is 400px. It´s there any possibility to do this without use a "for" operator to add.sprite for each 1px width? Thankx in advance. Link to comment Share on other sites More sharing options...
rich Posted March 11, 2014 Share Posted March 11, 2014 Just set the width: sprite.width = 400 However this won't "fill" the sprite with the 1px image, it will literally stretch the 1px image to be 400px wide, which may or may not look right (depends on the image) Link to comment Share on other sites More sharing options...
jorgesereno Posted March 11, 2014 Author Share Posted March 11, 2014 It's exactly what i want. the image is prepared to be literally stretched. Thankx, Link to comment Share on other sites More sharing options...
Recommended Posts