How can i change the gravity direction in game (by action)?
Thank so much for reading.
Assuming you're using the default Platform engine, go to whatever sprite you want to change gravity direction for and click the Platform tab Set Gravity Direction is under Settings.
But I'm not trying to make a platform game... It have a kind of physic.
Develop games in your browser. Powerful, performant & highly capable.
Sorry. I must've read it wrong. I've been working on the Physics engine and all I've figured out is how to reverse gravity by making it negative. I don't know much about this engine, so I couldn't figure out anything else.
You could set off the gravity and add a force towards a position or a direction, as you wish. This can be done with actions.