I have maze game.I have main sprite that walk in the maze game. After main sprite hit one of his "friend", that "friend" will follow behind wherever the main sprite goes.
I know how to detect collision detection but I don't know how to make that "friend" sprite follow main sprite behind. There's must be a static distance between main sprite and "friend" sprite
Please share some code for this problem