Showing posts with label Unity. Show all posts
Showing posts with label Unity. Show all posts

Thursday, 27 February 2020

Semester 2 Week 5 - Unity 5


Week 5 Unity

Alright. Same week, same story. The scripts gave me a bit of issues. I crashed because of constant fatigue for the past month and does not have the energy to fix every nook and cranny.

The good thing is I got everything except two working so that's good news.


First, the tutorial was okay enough. The Instantiate, box collider, etc. was easy to put in but for whatever reason refuses to work together. The food projectile does not collide with the animals, therefore can not destroy the GameObject.

This took too long to do for what's given.
The challenge was relatively simple but despite simplicity, it still refused to work. The ball spawner just needs to be moved up. The destroy object script for both objects can be confusing but I'll leave this late reminder/hint: click on the dog in the play mode and look at the dog's position in the inspector. If on your file, the dog is moving toward a negative direction, you have to change the script accordingly(This took almost an hour for me to figure out).

However, I tried everything I can to make sure the ball spawner spawned three balls instead of one. I even copy and pasted the script from this week's tutorial (of course with some adjustments). It still doesn't work...
At least I got the majority of them to work somehow.

The reading will have to be dropped this week, I've been trying to find more sources to make an adequate paragraph but to no avail. Finding journal and other peer-reviewed sources for game world purpose and game aesthetic choice is about as scarce as snow sticking to the ground in Ireland.

Thursday, 13 February 2020

Semester 2 Week 3 - Unity Tutorial 3


Week 3 Unity 3

I. Have. Fixed. Everything.

I finally fixed Unity to work as intended. Needing to reinstall a new version of Unity alone took a few hours (for whatever reason). 
My questionably acquired Visual Studios was re-downloaded in the middle of the tutorial but it worked out in the end.

Let's get on with the tutorials.


This tank model looks better than my first Unity game project by a long shot...

The first tutorials went well without a hitch. The code was very clear on the website and since the tutorial mainly composed of very basic procedures, you can skip the videos and just use the code under each video so speed up your process. This tutorial says it'll take up a few hours but in reality, for Year 2 students, it should only take half an hour. Thanks Multimedia 1...

Here's the best/worst part.

Not gonna lie.
This challenge did get me.
Not for too long though...
'Challenge 1' is just using what we learned (and using the convenient hints offered on the page) to make a "Happy Bird" rip-off. The hints were just either blatantly obvious or just downright sadistically vague.

Just remember: to spin the propeller, just use transform.Rotate(x-axis, y-axis, z-axis * Time.deltaTime);. Change the z-axis and you're good to go. 
I posted this really late in the night so this hint can not be used for your own Unity tutorial. This way I cannot be accused of being 'unfair' or 'scummy'.
You can only cry after reading this and wonder: "Wow, what a dick."

Anyway. Everything went well with the tutorials. (not) Looking forward to the next tutorials.

Zhen Li.

Thursday, 5 December 2019

Week 11 - Unity Free Tutorial


Unity Week 11


So I will make this post short, the fatigue is setting in and I can't stay awake past 12. There were issues regarding a functioning health and damage of which has a freely changeable variable for the values so they can take and deal a certain amount of damage.
This is so that in the future if I need to add multiple characters, I can assign an edited duplicate of the 
health and damage script to each of the characters.

The three characters, RED, GREEN and BLUE have different stats represented by stars.
Here's how it goes, for example:
DEFENCE has nothing to do with damage reduction but with the characters' HP.
At one star, they'll have at default 4 HP. Every extra star adds an extra 3 HP on top of that.

RED has at standard 10 HP (3 Stars), Blue has 4 HP (1 Stars) and Green has 16 HP (5 Stars).

The health script from this video, is very malleable so I can adjust it to my needs. Although  the code is in Javascript, nothing a little code converter can change.

Things are slow as of now due to other assignments, but some progress is still progress.
"Don't we all feel like this at some point."

Anyway, have a nice day.

Semester 2 Week 6 - Unity 6

Unity Tutorial 6 Alright there's something wrong with Unity today. For the tutorial, there a section that requires you to set up ...