I have a player object which uses the gravity variable set in the physics properties from the game config.
I want to make falling objects which the player could catch. I have already created a new object which extends Phaser.GameObjects.Sprite
, but I am struggling to set a custom gravity for it. (I want it to increase over time to make the objects harder to catch). So far they accelerate too quickly using the gravity from physics properties or stop altogether when I use body.setAllowGravity(false);
Any ideas on how to make custom gravity/acceleration for different objects?