# How to get one object to copy a character's location but 10 frames later in bge

I'm making a 2D platformer game and the character I have is similar to that of donkey kong country. When the character you are playing moves (such as donkey kong), the unplayable character (like diddy kong) follows and does exactly the same thing except a few frames later and ends up by his side again. I am going to learn python, but have not yet since I am doing school, and I have not found a way (python or no python) to get this to work. I have tried doing a slow parent, but that cuts corners and the character that is following ends up floating or dipping below ground level. Here is a quick depiction of my problem:

I would love it if someone has a solution, but if it involves python, you'll have to show me step by step how to do it. :) Thanks!

• – Rich Sedman Sep 8 '18 at 5:40
• That is exactly what I'm looking for! I tried to follow the directions, but they still seem geared toward people who know what they're doing more or less. I don't even know what a driver function is or how to set it up. I have the python copied and registered. Would you mind showing me the rest or point me to tutorials of how to do it? :) – DaDudeII Sep 9 '18 at 3:08
• This was my best effort. :) drive.google.com/file/d/1alJHVgy_2WTMMkP5aw5PT57HH3iJs2-T/… – DaDudeII Sep 9 '18 at 3:46
• @DaDudell Looking at your screenshot you've just about there. All that should be required is for you to change the Expr in the Drivers section (just under where it says 'Scripted Expression' to something like drv_delay(frame,"sphere_x", 10, var). I'll try and put together an answer to try and clarify for your situation. – Rich Sedman Sep 9 '18 at 5:35
• That would be fantastic because I did that last thing and something is still not right. I must have messed it up somewhere in there. :) – DaDudeII Sep 10 '18 at 0:38