By this point everything was done and ready to be built and shown at the upcoming presentation, though Joe's work and my work were in two separate scenes, so this meant spending some time combining the scenes together, and this was more time than I expected.
I first had to get everything in my scene ready to export, so I created each level section, including objects, scripts, spawn points and whatever else I needed, as a prefab. I exported these, as well as any character scripts that needed to be transferred over, and began to work in a new scene of Joe's project. I imported the package and put everything into the scene, as well as assigned the correct scripts to the character controller. Though of course it wasn't that simple.
I need to recreate every tag that I used in the other scene and re-tag every game object with what it needed, this took a little while though I managed to finish it and keep track. The more confusing job was re-assigning every public game object to the desired script and slot, this took a long time and was a nightmare to keep track of, I would play the game, get bugs, see where the bugs are coming from and find out what I had to do through it, as well as using other methods.
Once I had done all of this, there were more bugs! The first bird boss would lift you into the sky and not let you escape, due to it forcing the character controller above itself whenever they collided. I found a work around for this bug so that it wasn't game breaking. The second bird boss would barely chase you if you ran past the eggs, I did not understand why this happened and I still have the job of fixing it. The final stage of the boss saw the bird sinking half way into the floor whenever you distracted it. I did not understand these bugs as the scripts, object and tags are identical to the original scene, but these are all things to figure out and at this point none were game breaking.
As anyone who was in the presentation saw, there was a bug where the bird would float away from the player, this is a bug that I had and fixed before though in this case I am confused as to why it is happening. Some of these bugs I found are probably due to the change in version of unity, as it may be stricter or behave differently in certain aspects.
Looking back at this and how long it took, I thought to myself that there must be an easier way to do it. Though with moving everything to an updated version of unity, I am not sure what that would be. I realize that transferring everything into an updated scene is something we should do more often, to make sure there aren't any unexpected bugs.
No comments:
Post a Comment