This week I managed to get the photon sides of things to work better however the sync for the bullets don’t seem to be not working , even though my code seems to be fine. I have been going through my code over and over to find the bug, even changing all the firing code line by line to debug and find what is happening, this seems to be the major blocker for the week.
After two days of debugging I was going to lose all hopes I have for the project however I was allowed to re-scope my project a bit which has given me the encouragement to move forward and fix this bug, after some time I pulled through unity documentation & photon documentation only to come up short however I did not give up as I had a last option which was to go through the code we made for the game in gpg220 which was still there luckily the code there worked thus I copied it and pasted it to see if the projectiles synced over photon and to my surprise they did .
After comparing the old projects code to the new one I figured out that I was initially instantiating the object as a rigidbody which was not syncing over the network as photon syncs objects over the network rather than individual components which were causing all my problems.
Once the bullet problems were fixed I moved onto some UI work , I mainly worked on the end game scenario which was a quick one put together however it needs work which I will focus on towards the end of the project but I did work on some of the feedback given to me during the week which was fixing my blurred UI which was a result of me being lazy as a developer which lead me to scale the UI up rather than increasing the actual size of the UI this fixed the Blurred effect it had .
Comments
Post a Comment