Here is a picture of the whole code. The .capx is there too, made on v165 (sorry non beta users :( ).
Anyway, that's it for this tutorial, I hope I could help you with something here. This is my second tutorial do bear with me here.
If you know how to make this code even better, PM me so we can discuss it!
Thanks to Kyatric for some tips. You are awesome man!
Thanks you for your attention. Thanks Scirra Team for this awesome piece of software called Construct 2.