Hi,Please feel free to use it and credit me if you want. I just wanted to share this to everyone (and for the gold edge cart ). Don't redistribute this to any website without my permission thank you.
Or when your player dies, you can say in code, if enemy exists, do nothing, but if enemy does not exist, then create enemy at certain spot. (This would be a pain tho for lots of emeies)