Im trying to make a game that is very similar to the classic snake game, but i couldn't manage to make the same line effect that they did (i mean like the tail move like the "head" of the snake in delay). someone has ideas to do that?
This might be useful if your snake is comprised of a bunch of sprites:
https://www.scirra.com/manual/99/pin
"Rope style: the object is not rotated, but is kept at a maximum distance from the other object."
Develop games in your browser. Powerful, performant & highly capable.
Hmm thanks for the reply though i did EveryTick Pin in rope style and it did nothing.
i also tried the other styles
Perhaps a separate issue?
If you don't mind having a blocky effect (old-shcool style) then you could use an array for this. The array stores the coordinates for each element of the snake - the head writes its coordinates to the front and the other segments of the snake read their positions from it. When the head moves, just push in its new coords so each of the subsequent elements will have their position coords changed to those of its more senior neighbor.
Here's a very dodgy quick example.
https://www.scirra.com/tutorials/977/snake-game
Thanks that really helped!
— Thanks for asking the question. The replies have helped me too. Thanks to the C2 communnity too.