Here is generic guide on how that type of game is done:
http://www.extentofthejam.com/pseudo/
I was able to get it working in Construct Classic here:
viewtopic.php?t=58596&start=0
And some discussion about doing it in C2 can be found here:
viewtopic.php?f=156&t=77718&p=640214&hilit=pseudo#p640214
An example for C2 hasn't been made as of yet though.
thanks