How can i make my monster which is killed disappear little by little with c++ code

Thank you very much, I got it.