Week 6 GAM111

This week i was focused on cleaning up my game. I had four levels now the fourth being the biggest and hardest, and implementing all of the other levels, so the player would use all the skills they had learned previously.

I started to make the game look prettier sorting out colours and materials for the gameobjects, I tidied up my heirachy and assest folder so it was neater and easier to navigate. I played and tested my game making sure that everything worked and that is when i started running into trouble.

For some reason, if the player started from level one the next level they got to would be darker, as if there was no light source what so ever. I also found that on some levels the platforms would not fall, and the biggest problem was the moving platforms, the player would just slide and fall off.

To fix the moving platforms problem, I researched on how to do it using the Unity website and the point was to make the player a parent of the platform so they could still move around, but they would also move with the platform instead of just falling off. I did not understand the code and so had to ask the lecturer for help.

The problem with the platforms was that the script was looking for the gameobject “Player” but the player was instaniated every level and so was called “Player (Clone)”. It took me a while to figure this out, so i had to go back and change the code for it to work. However this ruined my checkpoint code as they to were looking for a similar name. However I did not find this out until later.

After fixing the problems that I could, i added a particle system and made the skybox a solid colour of black. This gave the effect that the player was in space. I then searched up for some sort of techno space music to go with the feel of the game.

Overall I am quite happy with my game and I cannot wait to build another one like it.