Thanks, I will take a look at them.
On closer inspection of the script, I have realized that you have simply copied the one from the tutorial directly, without modifying it. Please go back and read through the tutorial in detail, so you understand how the script is created. This should allow you to modify it to suit the 2D system you are interested in.