Hey guys, Im making my first game, a 2.5D platformer and Im wanting to do some platforms like the ones on New super Mario bros or Donkey kong country returns, here’s an example:
And… I have no idea of how to do it, basically when you are on platform A platform B goes down and platform A goes up and the when you are in platform B platform A goes down and platform B goes up… can this be done with joints? constant force? code? Help please ):
Should be pretty easy to code. Whenever you move one platform, you move the other one in the opposite, negative direction.
Oh, and by the way, don’t try to go all Half Life 2 on this and try to implement the platforms with physics with weight or whatever. That’s going to cause a ton of headache. Just check what’s standing on the platform and move their rigidbodies directly.