Jump to content

Weird Scaling problem


Recommended Posts

in main.js is

new Phaser.Game(707,550, Phaser.AUTO, '');

That is size of that image.


in boot.js is

this.scale.scaleMode = Phaser.ScaleManager.NO_SCALE;

in game.js is

this.katu = this.game.add.tileSprite(0, 0, 707, 550, 'katu');

That road sprite should appear only once and slide downwards in constant speed. My other game, I have created with same template, works normally.

Link to comment
Share on other sites


new Phaser.Game(707,442, Phaser.AUTO, '');


  create: function() {          this.scale.scaleMode = Phaser.ScaleManager.NO_SCALE;     this.physics.startSystem(Phaser.Physics.ARCADE);        this.state.start('preload');   }

preload.js is just load files and

this.scale.pageAlignHorizontally = true;


create: function(){           this.katu = this.game.add.tileSprite(0, 0, 707, 442, 'katu');    },update: function(){         this.katu.tilePosition.y += 1;    }  
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...