mrxj88 Posted January 4, 2017 Share Posted January 4, 2017 hey guys i'm pretty new to javascript and phaser so go easy on me lol. but i was trying to figure out what the 50 in front of this.game.width means? is it basically saying?that it gives a random number between 50 and -50? sorry for the noob question. (this.game.rnd.integerInRange(50, this.game.width-50) Link to comment Share on other sites More sharing options...
end3r Posted January 4, 2017 Share Posted January 4, 2017 It gives a random integer between 50 and this.game.width-50. For example, if this.game.width is 200, then the random integer will be between 50 and 150 (200-50). Link to comment Share on other sites More sharing options...
Recommended Posts