Tutorial 03

 UNITY TUTORIAL 03

Just like last weeks unity tutorial we continued on from where we had left off in the 2nd unity tutorial for ruby's adventure. This week the tutorials went through how to add health stats and values to the main character and to also set it where the character has a set value of health when the game starts. Another piece of code was added in which could change that health value also We also set up game triggers which would allow ruby to pick up collectibles such as health packs which then increase the value of her health.

In the second section of this tutorial we essentially did the opposite if what was done in the first half. In this section we added  areas which would hurt ruby and also enemies which would attack ruby, decrease her health and would also move back and forth. This was done by using adding a damage zone. Like the health collectible but instead of adding health onto the character it would take 1 value of health away. For the enemies we used and image that the tutorial provided. Script was added to allow the enemy to move back and forward and an oncollisionenter2d was added also to have it set that if ruby collides with the enemy she loses health.

The tutorials so far are going well for me and there is a lot of mechanics and code that I will definitely be adding to own game and if I need to look back at a certain point for a piece of code it should be quite easy to find.

 

Comments

  1. Hi it is me again, I'm casually stalking your site. Anyways well written post here, nice to hear yours thoughts on the 2D tutorials and that you're overall finding it handy enough. I'm curious as to what game you might make, I'm sure it's gonna be a guaranteed slapper. I'll eagerly await to see what you'll make. Bye bye now I'm dipping.

    Love you x.

    ReplyDelete
  2. Yo adam i like how you're going about this project and i love the characters that you used for the title picture looks like something i seen on brandys blog yous both will have to fight for the rights over those characters, looking forward to seeing how your project goes bro and see who used the assets better ;)

    ReplyDelete

Post a Comment

Popular Posts