移相器 "this.game.stage.bounds is undefined"
phaser "this.game.stage.bounds is undefined"
我在移相器中遇到这个错误 "this.game.stage.bounds is undefined"
function create(){
bgtile = game.add.tileSprite(0,350,game.stage.bounds.width,game.cache.getImage('bgtile').heigth, 'bgtile');
谁能帮帮我,谢谢:)
我只是把它改成了
game.stage.getBounds.width
而且有效:D
我在移相器中遇到这个错误 "this.game.stage.bounds is undefined"
function create(){
bgtile = game.add.tileSprite(0,350,game.stage.bounds.width,game.cache.getImage('bgtile').heigth, 'bgtile');
谁能帮帮我,谢谢:)
我只是把它改成了
game.stage.getBounds.width
而且有效:D