Posts

Showing posts with the label week 5

Unity Tutorial 03

Image
  Ready for battle, Unit 2 Lesson 2.1 When it comes to functionality I made it so the user can move left to right using their arrow keys but also made a range in which the player can't leave . Probably the most important skill I learned during this lesson was the new C# code called If-statement which basically implies if something happens or if something occurs then run this section of code. It's pretty useful and I've messed around with it before on python before. We also learnt how to just object scales and greater/less than operators. Lesson 2.2 Next, I learnt how to set up the prefabs and the process of setting up files for it, I learnt about how important it is to override prefabs so they are all synced up with the game, I tested my keypresses while also making sure to set up an out of bounds C# script which removed the pizza and animals from the scene once they go past a certain x or -x value. I set up the projectile for the pizza to be launched whenever we press the ...