DarkMoon_Lander Posted June 11, 2020 Share Posted June 11, 2020 create() { this.rock = this.physics.add.staticGroup(); this.rock.create(1002, 145); this.rock.setScale(2); } The code above does not set the scale of the rock that I have set as a static group. Is it even possible to scale things in a Static Group? Link to comment Share on other sites More sharing options...
Darko Posted June 11, 2020 Share Posted June 11, 2020 (edited) Hi, looks like static group has no "setScale", try with... this.rock.scaleXY(2, 2) https://photonstorm.github.io/phaser3-docs/Phaser.Physics.Arcade.StaticGroup.html#scaleXY__anchor Edited June 11, 2020 by Darko DarkMoon_Lander 1 Link to comment Share on other sites More sharing options...
DarkMoon_Lander Posted June 12, 2020 Author Share Posted June 12, 2020 Thank you Darko! It works perfectly! Link to comment Share on other sites More sharing options...
Recommended Posts