I am trying implement the 'tilty platform' and 'water and crate; from the example platformer in my game.
My game has different camera settings. It is setup as ortho with 1 unit = 1 pixel. I also have gravity set at -4000
With the tilty platform settings identical to the settings in the example, the platform is rotated at about 15 degrees instead of 0.
The crate sinks to the bottom of the water and does not bounce
I have double checked and the code and properties are set the same as the are in the example.
Any idea of why it is behaving this way?
Another question is how do you determine where to set gravity? Is there a rule of thumb or calc based on say the size of the main character?
Thanks
-Pat
Tilty Platform and other effects from example in my game
-
- Posts: 11
- Joined: Tue Oct 04, 2011 10:45 am
- Contact:
-
- Posts: 11
- Joined: Tue Oct 04, 2011 10:45 am
- Contact:
Re: Tilty Platform and other effects from example in my game
Update:
I reduced the gravity to 1,600 and now both effect work. I also had to play with FLUID_DENSITY and FLUID_DRAG to get the buoyancy effect to work.
I am still interested in hearing what you or anyone has to say about how to determine the value for gravity
Thanks
I reduced the gravity to 1,600 and now both effect work. I also had to play with FLUID_DENSITY and FLUID_DRAG to get the buoyancy effect to work.
I am still interested in hearing what you or anyone has to say about how to determine the value for gravity
Thanks
-
- Posts: 14
- Joined: Wed Dec 04, 2013 3:31 am
- Contact:
Re: Tilty Platform and other effects from example in my game
I just set the gravity based on how fast I want things to fall. I don't know of any rules or guidelines besides that.binarypat wrote: Another question is how do you determine where to set gravity? Is there a rule of thumb or calc based on say the size of the main character?
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Tilty Platform and other effects from example in my game
Yeah, I guess I just set it to whatever looks nice. If things look to "floaty" then increase gravity. If they look to heavy, decrease it. You don't really need to be scientific in a game when the character can jump 20 feet in the air. Mario's gravity is not.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Who is online
Users browsing this forum: No registered users and 1 guest