Try to fix the problem when you click the mouse on the background,the sprite spawns and it hides when you release the mouse but it won't work. Instead it is following the mouse.