Round, Planet style gravity for actors?
JoeB
Member Posts: 160
I wanna make an app where you can run on a round planet. How do I make it so that an actor can jump on and gravitate down towards a planet?
Comments
This is a method I've used, it's not perfect, but if you play with the numbers you should be able to get what you want.
First find the x and y position of your planet. It should have fixed rotation, non moveable, 0 bounciness, and circular collision shape.
Then in your hero actor (which should have 0 bounciness, non-fixed rotation, be moveable and have a rectangular collision shape)
Hope that helps.
F
Forgot to mention that the hero actor has 'max speed' checked and set to 200 (or whatever move speed you use) to stop it from accelerating around the planet.
Had a shot at putting together an example. I made a few more tweaks to the jump.
Demo file attached.
That's very clever! I will try this method, thank you!
Here's one we made a while back if it helps.
http://gshelper.com/shop/gamesalad-templates/soosiz-2/