Hi guys!
I've been trying to implement a modular shooter-style floating boss in my 2D platform game since yesterday, but I haven't been successful yet. I've tried using Physics' Revolute and Distance Joint, but it's been very buggy. I've tried implementing an algorithm (I confess, with the help of AIs) to keep the boss's sprites cohesive, also without success.
My goal, as you can see in the image below, is to have the head either follow the player, but keep a good distance from him (~35 pixels), or circle around the top of the screen, while the player destroys its parts until only the head remains, which is the final target.
Can anyone help me with this routine or have a similar example to share?
Thanks in advance for your help. :)