I am currently working on a project where one of the main features of the game is a Duo Platforming system similar to that of the original Donkey kong country (1) games , we have the switching down to a tee but as we are using physics with these characters , it is difficult to make the second player follow the first in the precise way we want it to , it is also important that the second player maintain the same rules and abilities for interactions as the Player themselves .
At the moment we are stumped as for how to make this work as you can see below (2) I've attempted to create a list of different commands for the second player and this works ok but its not precise enough and causes the second player to ping pong back and forth or overshoot the second player.
If any one has any advise or any solutions please let us know it would be greatly appreciated
Thank you for your time ,Ryan.
Example of the mechanic we want
(2) http://imgur.com/edit- Our current Coding