Planetary gravity behavior

Darkhog

  • Posts: 1243
I know we had something like this in the past (maybe HNF is author). I need this because I was hit by inspiration few seconds ago and want to make lil' physics game. Can someone upload it to forge (along with example game)?

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

HNF

  • Posts: 232
I can upload the game that I created on Forge, although I had trouble with the values. The problem is that I was using the formula for universal gravity, although the scenes do not represent the universe. They are too close and have smaller masses. Also, when the player tries to walk, they end up walking off the 'planet'. Gravity needs to be intensified closer to the surface.

Darkhog

  • Posts: 1243
Hm... Maybe we can work on this together, don't you think?

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

Darkhog

  • Posts: 1243
I fiddled a bit with gravity game and it lead me to think that gravity itself is good. "Walking off the planet (or ball)" is rather caused by usage of JnR kit movement behaviors which are constructed for standard gravity and can't work good with these settings. To make it good you should make your own movement behaviors. Then we can make Super Mario Galaxy 2d Flash (although game I have in mind isn't it).

One thing. Could you make possible to pause/unpause universal gravity for specified objects? My idea requires that objects (not all) have universal gravity paused at start and it's unpaused upon collision.

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

Darkhog

  • Posts: 1243
Also I've managed to clear up universal gravity behavior and made adjustments to allow set group of actors the object will be attracted to. I'll now start prototyping game.

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

HNF

  • Posts: 232
I won't have time to help, since I'm working on my RPG kit. If you want to disable/enable gravity, you could always disable the behavior using blocks.