0 votes

Hey guys i have been playing carrion for a while. In the game you play as this tentacle monster (player) whose solo objective is to kill and spread it's biomass all over the containment facility.
However what fascinates me the most is the game's monster's (player) sprite animations
Here's what it looks like :

Closer look at Carrion Player sprite animations

The game uses left mouse click for movement. And when you click on the screen 1 or 2 tendrils extend out of the player sprite in a straight line. If it colloids it attaches to the colliding mesh. If it does not make contact it extends out a bit further and returns back inside the player sprite. What is fascinating is while heading back the tentacle wiggle's just like a tentacle. And this is animated via code and no ta predetermined animation.

This is what the sprite sheet for the monster (player) looks like:
Monster player sprite sheet

The only other game i have seen this kind of animation is in noita.
Noita tentacle wand

I can't find any resources online on how to simulate this king of animation in godot. If Anyone here willing to share this knowledge would be much appreciated.

in Engine by (58 points)

Hi,
have a look here ... its not that sophisticated but its a start

https://celestialpod.com/blog/posts/post-squidTentacles.html

https://www.youtube.com/watch?v=aMZHN2sWDVk

here are some generale informations about procedural animations

https://www.alanzucconi.com/2017/04/17/procedural-animations/

My approach would be some sort of rope physics. A series of nodes attached with springs. Then add some sort of sinus wave tension along the rope. When the rope is released the springs force lessens and the sine wave tension dominates on the nodes. This could make the desired effect of waviness when retracting.

Thank you this was very helpful.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.