How can I make a series of actors follow one another precisely

Yesterday I posted this question trying to learn how to make my SnakeBody class follow my SnakeHead class in my Snake clone. Today I’d like to see if anyone has any suggestions on how to implement an alternate method. I saw this video of “Pix the Cat” and I’d like to see if I can get the SnakeBody instances to follow my SnakeHead player, much the way the ducks follow Pix the Cat. I’d like to dynamically add SnakeBody elements to the SnakeHead, or even subtract them if I decide to add powerups/powerdowns to the game.

Is there any easy, elegant solution I’m missing on how I can get actors to follow the player precisely, following the exact path the player has taken?

Hey,

I have something in mind but its 9am in Germany and i’m home in 8 hours from now. If you havent found a solution till then, i will test something.

Any solution to this ?

He’s suspended, so i stopped thinking about this.

Do you need the same thing?

I see, thanks for notifying me.
Yes, I’m working on a university project , the aim is to create a Sound toy.
I am interested in finding out how to get several actors to follow each other in a snake like manner. So that anything behind the “Head” would follow in a mimicking fashion. I just started using the Unreal engine and i am using Blueprints. So far I’ve understood how to automate doors slides and lights, how to build structures, adding sound to objects, motion and how to use most of the tools. Unfortunately i could not find any useful information for the actors to follow each other. Could you help?

I would need to know if it’s grid movement, like the old snake games on your nokia, or completly free? Because there are different solutions for these two.

Completely free would be preferable.

Ok, i will have a look at this if i find time. Could take a few days :X

@cubicparanoia For free movement, you’ll want to use constraints in the physics system. You can read this for some details: Physics Constraint Reference in Unreal Engine | Unreal Engine Documentation

That’s no problem, i’m currently trying to find out how to package and play my game on desktop, that will take me some time lol :slight_smile:

Email me at : Cubicparanoia@gmail.com when you’re ready.

Thanks

Thanks i’ll do that.

Look at the physics constraint actor, linking a few of them together could get your desired movement.

I know this is a rope but when lying on the ground and being dragged from the front it should look alright.

https://docs.unrealengine.com/latest/INT/Engine/Physics/Constraints/ConstraintsUserGuide/index.html

There is a also demonstrations of its use in the content examples in the physics bit