Thursday, February 24, 2011

Day 8 (Feb.24.11) - Class

340 - 610 PM

  1. Went to moodle to check assignments for the day
  2. Assignments are : 
    1. Continue working with outpost model
    2. Ch. 5 prefab collection, HUD ???
  3. Actual assignment is to continue what we were doing last class and as hw
  4. Blyth checked my blog
  5. So I opened up the file on my hard drive
  6. There were a few typos in the code that I hadn't noticed
  7. Fixed the typos and the code was fine
  8. I saved the project then the scene (which was a bad idea)
  9. Closed Unity and transferred the whole file onto the computer's hard drive
  10. It was a completely different saved version and did not have the corrections that were made to it and the script had different problems now.
  11. So I closed Unity for a second time and reopened the file on my hard drive
  12. That file was fine so I'm just going to work off my hard drive for the sake of time, if it starts running slow or I start having problems then I'll move a copy onto the hard drive on the computer
  13. I noticed that in the 3 times that I tested it in play mode I couldn't get the door to open at all so I rammed it pointlessly in my frustration at first then checked to see if the script was applied to the first person controller like I had saved it as and it wasn't
  14. On top of that I decided to check trigger is for the box collider on the door, and to change the scale of z as well
  15. Dragged and dropped the audio files from the assets folder to the Door Open Sound & Door Shut Sound drop off points and saved (scene then project)
  16. Played/Tested
  17. Door still won't open, but with trigger on the First player controller can walk through it
  18. It turned out that the problem was the missing audio source that had to be dragged in to the first person controller rather than into the sound slots allotted
  19. Moved on to Ray casting
  20. I already know how to comment out script so I left that part of the script alone for now, if it ends up that I need to change it then I will at that time
  21. Added the scripting for the Ray Casting
  22. Went to play came across errors that I didn't notice upon saving the script, more typos that I found and corrected and tested by playing the game
  23. Starting chapter 5
  24. Checked off the trigger is box in the box collider
  25. Imported Chapter 5 assets
  26. Placed it & scaled it
  27. Created a new script called RotateObject
  28. Wrote the script and applied to the prefab (all the battery objects have the script)
  29. Created a GUI Texture and applied the battery_nocharge texture to it
  30. Tested to soo if the rotation script worked, it does
  31. Set the X and Y axis positioning (which is different from what is written) to X= -740 and Y = -280
  32. Created new script file called BatteryCollect
  33. Completed the script writing and corrected errors found by the console
  34. Opened the folder called textures in the project panel and I'm leaving off on the next step which is called Battery Collection with Triggers
  35. Blogged (throughout class)
Hw:
  1. Continue working on chapter 5 (shoot out email if there's a problem) [Due: Tues March 1st 2011]

No comments:

Post a Comment