Add an action called "change gravity for player"

Add an action called “change gravity for player”. It is because there aren’t any other ways to change the gravity except on the settings. However in my platformer game. I want to change the gravity in different levels so that it won’t be boring. Or adding an action called “change gravity for everyone”.

2 Likes

Instead of using gravity, you could use regions and apply downward impulse to the unit every frame while it is inside the region. This allows you to set custom ‘gravity’ for individual regions/units.
Make sure to use entity scripts for this since that will perform better (and create less lag for players). I’ve used this in myJomp Frog game and it’s working quite well.
You can use a similar logic to apply floor friction to units and create slippery surfaces like an ice floor.

2 Likes