TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Planetary gravity behavior
Pages:
1
Planetary gravity behavior
Darkhog
Posts: 1243
May 08, 2011, 09:55:35 am
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
HNF
Posts: 232
May 08, 2011, 11:46:46 am
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.
Stencyl RPG Advancement Foundation
Darkhog
Posts: 1243
May 08, 2011, 10:58:27 pm
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
Darkhog
Posts: 1243
May 09, 2011, 04:12:34 am
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
Darkhog
Posts: 1243
May 09, 2011, 07:04:30 am
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
HNF
Posts: 232
May 09, 2011, 01:48:49 pm
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.
Stencyl RPG Advancement Foundation
Pages:
1