Hi hope everyone is well. I would just like some clarification of this code I found in Phaser 2.
// Our bullet group
bullets = game.add.group();
bullets.enableBody = true;
bullets.physicsBodyType = Phaser.Physics.ARCADE;
bullets.createMultiple(30, ‘bullet’, 0, false);
bullets.setAll(‘anchor.x’, 0.5);
bullets.setAll(‘anchor.y’, 0.5);
bullets.setAll(‘outOfBoundsKill’, true);
bullets.setAll(‘checkWorldBounds’, true);
How can I re arrange this code so it is suitable for Phaser 3, I keep getting an error ‘setAll is not a function’. Currently I am using phaser 3.