Monday, October 26, 2015

Week 5 Blog Post #4 Bugs , bugs and Confusion

For this week’s class we learned how to create how to create an animation and obstacles, which would need to be implemented in the game we are working on.

Here are my tasks to complete for this week: -
1. Create all game menus - Main Menu, Pause Menu, HUD, End (!) with animation and consistent fonts, colors etc.
2. Create the Game scene with player, jetpack, fuel, collectables, and obstacles.
3. Kill zone for out of scene objects.
4. Add a rocket.

Firstly before starting this week’s tasks I decided to clean up the existing project, as there were too many canvases but this rest most the button configurations I had made earlier while making the UI this will need some time to figure out as there are too many items under the canvas and thus I will continue this later.
Update: - made too many changes to the UI and need to ask tutor for help *

Items under canvas: -
Pause and resume button
Player name input and player name display
Start button
Score
Coins

Secondly I started off by creating an array to store my collectables fuel and obstacles and would spawn them based on the distance the player has travelled within the game. The array will contain a floating fuel tank, coins and one obstacle for now also it is all instantiated randomly between two given positions on the grid. One problem i encountered was that when nothing was stored in my array it gave errors which was resolved by adding a coin prefab into it.

Note: - never leave an array empty while it is public and can be accessed by unity.


Thirdly making a kill zone was easy, all I had to do was create a cube resize so the objects would collide and get destroyed .All I had to do was make a collision script that said if objects are triggers and are tagged with the tag of XYZ then to destroy the game object. To make it invisible I disabled its mesh renderer

Fourthly I have not found any appropriate assets for the game so I will leave my game as it is for now and only used colored materials for most the objects.

A few things fixed: -

While inputting the players name you could not see it this was solved by deleting the input field and recreating it.

While working on the coins instantiation I noticed that the coins were instantiating but did not move with the background after some tinkering I found out that I would need to make another script so that the coins move with the background.
                                                                                               
More bugs created: -

Cannot add fonts to the player name input as the text inside the input slot disappears.
Due to too many changes in the UI I have confused myself.

No comments:

Post a Comment