**keeping the .capx updated as I progress in this reply. Disregard my replies below.
Hello this is my first post. I am new to the construct community but am very interested in the software and what it has to offer. I can see myself purchasing a license in the future and hopefully sharing some games with the world.
I have spent very near 12 hours trying to figure out how to get one of the bosses I am designing to move as I imagine him to. He is a series of balls like a caterpillar or snake. The head will guide the body by randomly changing directions and turning around when hitting a wall. My problem is getting the segments of the body to follow the path that the head has moved exactly. They can’t be off by a pixel (well okay maybe one…).
*** Must accept any angle change, at any time, at any speed and have every segment move in the exact positions the head moved in.
I have my best attempt in this .CAPX file attached. This is a very very simplified version of what the boss will be but that seems to be the best way to iron out the kinks. If I can get it to follow this simple path I can get it to follow a more complicated one.
Here is a link to a similar (okay I totally ripped it off…. But whatever it’s such a fun boss) Boss from Zelda a Link to the Past (Best game ever made): youtube.com/watch (Notice the precise movement of the body).
- I do not want to use to PIN object to hold them together (tried that it was a mess… too unpredictable).
- The head can change angles whenever it hits a wall so a set time will not work it must be able to handle a direction change after 4 seconds or 0.2 seconds at any time. (I attempt to pass along the time travelled in any direction as well as the angle to travel in that direction using variables. I believe problems arise when a variable is changed before a segment can get its hands on it to know where to go. I don’t know how to fix this problem).
- The boss will change speeds too (This Test has him moving at 60 bullet speed (60pixels per second) since that’s the frame rate construct runs on my computer which makes any time*dt easier since its always multiples of 60).
- I’ve tried using “move forward X pixels”, bullet behavior, and some random things I’d rather not repeat… Bullet behavior seems to be the most reliable and looks like it could work (If I can get the angles and times to the segments before they are changed.
Sorry for the long post and complicated question… Maybe I just needed a break from trying to get it to work heh but if someone knows of anything that would fix this I would be VERY happy.
P.S. There are some array based “Classic” Snake Game tutorials I have seen on the forums but they are too simple and aren't much help in recreating the Moldorm (Zelda Boss) movement in Construct 2.