Jump to content

setScale on GameObject?


fruitbatinshades
 Share

Recommended Posts

I am trying to follow http://phaser.io/tutorials/making-your-first-phaser-3-game with phaser 3.8 but after the scale manager change I can't find the correct object to call setScale on.

    //  The platforms group contains the ground and the 2 ledges we can jump on
    platforms = this.physics.add.staticGroup();

    //  Here we create the ground.
    //  Scale it to fit the width of the game (the original sprite is 400x32 in size)
    platforms.create(400, 568, 'ground').setScale(2).refreshBody();

Does anyone know how to scale something from the create method?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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