1

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!

Silas
  • 366
  • 2
  • 13
  • Related : https://blender.stackexchange.com/a/108484/29586 – Rich Sedman Sep 08 '18 at 05: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? :) – Silas Sep 09 '18 at 03:08
  • This was my best effort. :) https://drive.google.com/file/d/1alJHVgy_2WTMMkP5aw5PT57HH3iJs2-T/view?usp=sharing – Silas Sep 09 '18 at 03: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 09 '18 at 05: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. :) – Silas Sep 10 '18 at 00:38
  • Aha. I got it to work, but only when I have an action for it. Would it work for when I'm using motion controls in the game engine? – Silas Sep 11 '18 at 15:27
  • @DaDudell That’s great. I’m afraid I don’t use the game engine very much so I don’t really know - although I don’t see why it wouldn’t work as it’s just a driver after all. It would be great if you could write an answer with your solution so that youcan then mark it as ‘accepted’ (you’ll gain reputation for this and the answer will be there to help other users in the future if they search for this). – Rich Sedman Sep 11 '18 at 15:33
  • That's totally fine! I'll ask this on blenderartists too and I'll post the answer if I can figure one out. Thanks for your help. :) – Silas Sep 11 '18 at 16:45
  • Hey we figured it out on blenderartists.org! It works great. :) How to get one object to copy a character’s location but 10 frames later – Silas Sep 13 '18 at 21:17

0 Answers0