Well, if you have the rights, it's no problem, like the Leisure Suit Larry one where the producers gained the rights to the character. If you don't, it's up to the company with the rights and their legal department whether they want to stop you, apparently.