Biggerplay Posted January 30, 2014 Share Posted January 30, 2014 How can I create a gauge? I know there's the preloader bar, but as far as I know you can only use it for preloading, is there another object/method for setting a gauge for another use? Link to comment Share on other sites More sharing options...
turnA Posted January 30, 2014 Share Posted January 30, 2014 You can use crop properties of the sprite. Like so: sprite.cropEnabled = true;sprite.crop.width = 50; Link to comment Share on other sites More sharing options...
Biggerplay Posted January 30, 2014 Author Share Posted January 30, 2014 That's what I'm doing, but be cool if a gauge method was part of Phaser, you set it up with a back, top and bar image and then can set it with a percentage like gauge.ratio = 0.5; Link to comment Share on other sites More sharing options...
Recommended Posts