That example is almost there really. Seems like a bit of a hacky way to do it though.
I did used to know how to do this kind of system in a more elegant mathsy way but i'm a bit sketchy on it now.
I will probably try making a game with it at some point. I'll definitely see if I can put together a neater solution, although i'm sure someone using Construct 2 must have done it before, its not like its a brand new concept noones tried before.