how to collide and make new sprite?

hi,im making a game and i want it so when i collide the sprite changes and will follow me could you help me?