In this exercise Joshua Kinney ( the guy who made the tutorials) explains and shows us how to use the code in Unity. He goes through a step by step guide to what each line means, does and how to apply it. Its really cool because we were able to show type ho fast/slow we wanted the object to move and were able to get notifications to pop up if the object was moving faster than the “speed limit” thing we added.
I intially started by following Wessie in class while he explained and then changed to the tutorial. The last image (before the screen recording) I’ve highlighted a line of code. This is very important. You need to change this code to the name of the file in Unity otherwise the code will not run or link to the object its meant to. Another Important thing is to name the scripts in detail as we will have loads of scripts for all different characters and objects – making it easy to lose track of whats what.
I struggled at one point in the tutorial exercise when creating the notification. I could not find out what was wrong or where the error in my code was (even though it was telling me it was in the one line). Eventually after Wessie and Luke looked through it Luke made me aware of a ‘+’ that was missing before ‘MPH’. Anyway, long story short, that plus sign fixed the problem and it was smooth sailing after that.






