Multiple Snake like Enemies

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi, I'm trying to make an enemy similar to the Moldorm enemies from various Zelda games

    Please login to see this media element.

    But I want MULTIPLE of them, so at any time I want to be able to spawn in a snake enemy and have it create its own set of segments. Best I can do is use the code from the excellent Area 52 open source example posted here to recreate the centipede like boss, but the segments only apply to one of the "heads" and I want each head to have its own "children" segments that only follow that head. Any help would be appreciated.

    Please login to see this link.

    Please login to see this picture.
    Please login to see this link. and Please login to see this link.

  • So I put that example together quite late last night, and apparently was having trouble counting to five (see how the worms only have four body segments, even though they're clearly supposed to have five?). Anyway, I fixed that and re-uploaded (same link as above). The only change is the removal of a condition on line #22.
    I have a suspicion that the taking damage part is also broken though and will need fixing...

  • Ah yeah I see it, I've managed to get it working really well using a few methods from yours mixed with the example I posted to get the worms to be a bit more "random" but still chase the player at given times, working great! Only thing I wonder is how to get the body segments to rotate with the head. I set the head to have the same angle as the moveAngle value and that works fine, just need to work out how to get the body to follow suit so I can add legs to the sprites.

    Please login to see this picture.
    Please login to see this link. and Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!