Wormy, tentacly enemy attack
Recently I've been trying to finalize as many remaining enemies for the current game level as possible and I have majority of them ready to go for more in dept testing. I have several monsters that are worm or similar critter themed so I have been thinking of how to make cool attacks for these for a while. Here are a couple enemies using variations of an extending tentacle-like attack that follows you until it reaches its maximum length.
The tracking isn't perfect, at certain angles it messes up a little and starts to wrap into wrong direction, but I actually kinda like it. Gives it a sort of messy feel as if the worm/tentacle attacks are hard to control and sometimes it even looks like the monster is trying to protect its weak point. If the tracking was a hundred 100 exact then the longer tentacles would always end up converging into a single line and I wanted to avoid that from the start.


I coded it in a way that makes it easy to change each individual tentacles' speed, length, and even tracking precision to a degree so it adds some variety. For example this guy bellow has a thicker, shorter and slower worm tentacle and a second one that is faster and longer. The tip of the tentacle causes damage and the rest of it acts as a barrier and this attack can cause a lot of damage if you space out and allow even a single one hit you for longer than a moment.
