Sunday, March 2, 2014

Week 4 Milestone

This week created a multiplayer interface so that we could bring our game to a testable level. I ended up having to scrap the code for the character select menu and re-write it entirely. This was a success. My player select menu works, the character select menu works, and the camera setup almost works. I just realized that I have it set up so that one person picks everyone's characters. This will have to be corrected.

I thought that my code to modify the camera view rect was correct but obviously not. I have a submitted a question to unity answers to see if they have any idea. Hopefully I will have this fixed by class, otherwise I can set the viewports manually to at least let people play.

My character select successfully uses a game pad to select characters for how ever many players you choose(currently set to 4 for testing purposes). the camera script successfully imports the values into a new array and displays them to make sure it got it.



I have the array displayed once in the start function, so I am confused as to why it was called 4 times.



Below I have just a few of the plethora of errors I waded my way through this week.

One of the many problems I had with getting the array syntax correct.


Even after getting my syntax correct, it was still giving me crap. I ended up swapping for the javascript "array" variable type.


Another side effect of the crappy arrays. They would not assign anything to the variable for some reason and always gave me null when printed.


No comments:

Post a Comment