Unity Tutorial 02 screenshot of my work. |
For this week's Unity Tutorial, we must complete two things such as decorating the world of our 2D games using the tiles that we converted into sprites. I had fun decorating my game and I really took time to place the objects where I think it looks good. I think it is good that we can design our game as we can add as many things as we can. I also learned how to add a physics system to our player controller therefore it does not fall when I play the game. I was also thought about how to adjust the box collider in the 2D version and it does not really have a difference between the 3D versions.
Problem:
While I was doing the tutorial, I was distracted by the heading of the "Ruby Controller" as the first letter was not in a capital letter. I decided to rename and when I added new codes onto the player, it was not working anymore, and I was having trouble looking for the error. I tried again the next day and it still did not work as I have not realized what I did wrong. Therefore, I made up my mind that I will create a new Ruby player and a Script, but I named it "PlayerController" to help me not to get confused between the old version.
In the end, everything worked perfectly again, and I was able to complete the tutorial! This week, I learned that I should be more careful next time as I cannot change my work as easily as I think it would be and that I should not be lazy to recheck my work!!
Here are the lists of the things that I learned from this week:
- I learned how to change the drawing order of my GameObject
- How to create Prefabs from GameObjects in the 2D version.
- Prefabs are very important in Unity 2D
- The basic information about Physics System
- I added a Rigid Body component to help the Physics system handle objects.
- I also adjusted the Collider to the PlayerController and MetalCube prefabs.
Comments
Post a Comment