To make this I used 50 sprites and got them to follow each other at a certain distacne. The front one follows the mouse. Change the distance and speed to change how the snake behaves. This works in both players.