Classic Snake Character

I’m making a game like snake for one of my classes, is there a way to make it like the classic snake in blueprint ( by eating apples it can grow ) ? If yes please guide me, Thank you.

Well, the easiest way would be to increase it’s length using Set Actor Transform/Add Actor Local Transform, but it will scale from the middle rather than adding more on one end.

I was trying to see if I could get it to work by attaching an instance of it to itself, using sockets, but I couldn’t figure it out.

If you manage to make a function that causes it to grow, or add a new segment on the end, you can just call it whenever he eats an apple. Have a hit box on the apple and in the apple blueprint call the function when it overlaps, then destroy the apple.

just so you know to dynamically add child component is totally doable.
if it’s a blueprinted actor you want to attach to your custom pawn/character, just use the ChildActorComponent.

Thank you, I’ll try these tonight