Hello, after almost two years I decided to give me a try to Phaser again to create some silly games. The deal is that I need to set a different size for collision but it is not working. Look the code below and the picture.
this.platform = this.physics.add.staticGroup();
this.platform.create( this.platformPos.x-140*.4, this.platformPos.y, 'pltf1')
.setOrigin(0,1)
.setSize(140,100)
.setScale(.4)
.refreshBody();
this.platform.create( this.platformPos.x, this.platformPos.y, 'pltf2')
.setOrigin(0,1)
.setSize(140,100)
.setScale(.4)
.refreshBody();
this.platform.create( this.platformPos.x+140*.4, this.platformPos.y, 'pltf3')
.setOrigin(0,1)
.setSize(140,100)
.setScale(.4)
.refreshBody();
Thanks in advance