I'm having an issue where global gravity won't turn off.
I was first aware of the problem in r112. At the time, despite having 'global gravity set to 0' littered in numerous locations in my code, the physics object in question would still be affected by gravity the first time it was spawned into the game. Every time afterward, the object would be unaffected by gravity. Now in 'r115,' I'm having the same issue.
Continuing with the example of the gold coin, I have 'Gold Coin: Set Physics world gravity to 0' loading at the beginning of every single level, and I also have that same event running when each and every single gold coin is spawned into the world. Despite gravity being turned off (at least) twice for these objects, the objects first spawned into the game will fall, affected by gravity. All of the same objects spawned afterward behave without gravity, and do not fall.
I would share the .CAPX to help the diagnosis of the problem, but it's massive. I can say that this bug seems to be affecting some objects that it did not previously in r112.
The relevant events being used in this situation are:
- Set Physics world gravity to 0
- Spawn (physics object)
- Apply Physics impulse (...) at angle (...)
To reiterate, all objects with physics will fall, affected by gravity, when they are first spawned. Those same objects spawned again will be unaffected by gravity, as intended. Also, for top-down perspective games like mine that are the wrong perspective for gravity, can we have an event to disable gravity for all physics objects spawned into the game, and not just on an object-by-object basis?
Once the new version is approved, the game in question will be available at: