What engine do you use?
Clickteam Fusion, though as I think od it now, there are some sneaky ways to do this