Skip to main content

UNITY TUTORIAL 02

Illustration from Pinterest.

This week I completed two more sets of tutorials for building Ruby's 2D Adventure. I added items such as trees, drains, metal cubes, flowers and more to my scene. To make it look like Ruby is standing in front or behind the items I changed the transparency mode in the camera settings to custom axis. I changed the sprite sort point to pivot and edited Ruby's custom pivot in the sprite editor so that the pivot is now placed at the bottom. Now it does not look as though Ruby moves in front or behind the items too early. I created a prefabs folder and added the items to it. This allowed me to easily add duplicates of the items to my scene. 

I added a RigidBody component to Ruby and changed the gravity scale to 0 to prevent her from falling out of the screen. I added a box collider to Ruby and the items, and adjusted the sizes. To stop Ruby from glitching and rotating when coming in contact with an item, I activated the freeze rotation in the RigidBody component and edited the RubyController script. I added a TileMap collider then changed the collider type of all the "land" tiles to none so that Ruby stops at the border when she tries to walk onto the water tiles. 

Screenshot of my progress in Unity.


Comments

Popular posts from this blog

INTRODUCTION TO SOMEONE WHO'S JUST VIBING

HEY!! Look who made it to her second year of college!! Me, Nadine, I did!! Yeah, I'm even more surprised than you are.  Happy girl illustration by 94MLK_ on Twitter. Saved from Pinterest . Last year wasn't too bad, but that was up until the whole country went into quarantine and I began to fear for my college career. I was constantly on the verge of giving up on my assignments but I would like to thank my friends for not allowing that to happen. I'm so glad I get to start year two with them and hopefully we'll make it to the end together too!  Despite the stress, there are a few pieces of work from year one that I'm proud of. I liked the websites that I created for Web Development 1 and 2, the video I edited from Introduction to Digital Media mission 3 and the advertisement poster I made for Digital Photography. I hope to produce better work this year.  Personal screenshot from the index page of my web development 1 project. Personal screenshot from the index page ...

UNITY TUTORIAL 04

Various devices illustration from Freepik . This week I completed the final set of tutorials to create a simple animal feeding game. I learned how to make animals spawn on their own rather than having to click "S" to do so. This involved creating a custom function and moving the if-statement under "void Update" to this new function. I also learned how to make the animals spawn after a certain timeframe. I learned how to add box colliders to the animals and how to edit the size of these box colliders. Moreover, I was taught how to make the animals and pizza disappear when they came in contact with each other. I added an else-if-statement that triggers a "Game Over" message when an animal surpasses the player without being fed.  Following this, I completed a challenge in which I had to correct a game similar to the one in the previous tutorials. The final product should allow the player to spawn dogs to catch falling coloured balls. The dogs were initially a...

GAME BRAINSTORM

Game devices from Creative Market . For my first game idea, I was thinking of creating an infinite runner game like the well-known mobile game, Subway Surfers. This is a game that I'm very familiar with and used to spend a lot of time playing. What makes my idea different is that I want to have a more nature-based theme and have the player be extremely small, similar to the character Arrietty from the Ghibli Studios film, "The Secret World of Arrietty," who is a tiny girl who lives with her parents beneath the house of a regular sized family. She often ventures outside to gather supplies. Just like in Subway Surfers, the players main objective is to avoid getting caught. I was thinking of putting the player in a garden where they have accidentally disrupted a sleeping dog and waking it up which results in a chase across the garden. The player must continually run away from the dog while collecting seeds which add up as points. As the game progresses, so does the player...