So I’m making a game with an underwater level, and i want my character to be able to swim around and possibly have things ‘float’ but not all the way to the top. I tried changing the gravity to 0 but that makes it 0 for all levels. The only other way I thought of is to use the ship controls behavior bundle, but that only works for the playable character. Any ideas?
So here’s one thing you could try:
- add a motor pushing up (against gravity) to give an object “buoyancy” while it is below the water line.
Here is an example I just put together, and I gave the water some transparency, and put it on a higher layer to look a little more convincing: https://flowlab.io/game/view/213661
If you just want to turn gravity completely off for an object, just edit your relevant objects and uncheck “affected by gravity”.