1
$\begingroup$

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:

following object cuts corners when slow parent is used

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!

$\endgroup$
9
  • $\begingroup$ Related : blender.stackexchange.com/a/108484/29586 $\endgroup$ Commented Sep 8, 2018 at 5:40
  • $\begingroup$ 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? :) $\endgroup$
    – Silas
    Commented Sep 9, 2018 at 3:08
  • $\begingroup$ This was my best effort. :) drive.google.com/file/d/1alJHVgy_2WTMMkP5aw5PT57HH3iJs2-T/… $\endgroup$
    – Silas
    Commented Sep 9, 2018 at 3:46
  • $\begingroup$ @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. $\endgroup$ Commented Sep 9, 2018 at 5:35
  • $\begingroup$ 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. :) $\endgroup$
    – Silas
    Commented Sep 10, 2018 at 0:38

0

You must log in to answer this question.

Browse other questions tagged .