Make a sprite with X icon. Create/spawn this sprite when you need it, then destroy.
You can add a fade behavior, it will destroy it for you after fading out.
Alternatively you can keep this sprite invisible and toggle its visibility.
Or keep it off the screen and move it to the screen when you need to display it.
Great! i'll try it. Can i give another one? So i'm trying to make that, if player have collected all the items, then they can continue next level. For example, they have to collect a,b,c, and d but they only have a,b and c, so they can't go next level. I wanted to make a pop up that shows what they have collected. I've tried looking up for tutorials, but i didn't bump into one.