I would like to learn making games using Phaser.
I know you define the gravity in the config, like this:
var config = {
type: Phaser.AUTO,
width: 800,
height: 600,
physics: {
default: 'arcade',
arcade: {
gravity: { y: 300 },
debug: false
}
},
scene: [FirstScene, SecondScene,...]
};
But this applies to all scenes. Is there a way how to change the gravity in just one scene.