How to mimic gravity but instead of downwards, it goes to the left or right

How to create a constant force that drags individual players to the right. I want to make this force switch between dragging to left (5s) and dragging to right (next 5s) through the game. So, I cannot use the gravity in the settings engine.
Please helpp. Thanks

1 Like

You could make a gravity system by using global variables to determine the current gravity applied to all players and an entity script on player units that applies force depending on those variables:


That way, you can change the gravity using scripts.

1 Like

Thank youuuuuuu!!! I’ll try that!!! :slight_smile:

2 Likes