Week 10 - Unity Tutorials - Countdown Timer

Last week, when I was doing my project, I realised that my timer was set at 59 seconds and that I couldn't add minutes - I thought this needed changing.

I found three tutorials to see if I could find a way to add to the timer I already have rather than to completely change it considering it took me quite a bit to get it to work. I selected three tutorials to try out separately and then I'll try and incorporate them into my project on Friday when I do it. 


(pinterest.com, digital alarm clock showing 9:24am)

Firstly, I created a 'slider' timer which was really cool. It worked after the usual bumps along the way. I also felt more comfortable with the code than I have been because I'd used most of it when I was doing last week and the week befores' work on the project. However, I don't think this timer would suit my game. I just wanted minutes and seconds, not slider or anything fancier. I also don't need hours or milliseconds but it was interesting.

Then I returned to a tutorial that I had used before but didn't work. As I mentioned in a previous blog post where I used this tutorial, I thought there was a particular piece of code missing that, if I repeated this tutorial, I'd add in. Well, I repeated and drum roll, it didn't work again! That does say to me though that there's more issues with the tutorial than appears and that it not working probably isn't my fault if it hasn't worked twice now on two separate occasions. 

Lastly, I watched a tutorial that showed hours, seconds and minutes. The code seemed to be most similar to the code I already had set up for my project so I was interested to watch along and then recreate. It did work and I didn't find it impossible either. I'm hoping between the first and last tutorial that I'll be able to work it out. If not, then I can try something else or leave it as is and move on.

I do have to say, watching these tutorials on YouTube vs the tutorials on Unity, I feel like YouTubers have taught me more. I feel like the Unity tutorials really glossed over what they were doing and so I knew what to type but I didn't understand why I was typing it. That meant that solving problems or fixing something was really hard because I don't know what I'm doing. These YouTube tutorials have explained some things a bit more so I definitely feel more confident nowadays. 

References:

https://www.youtube.com/watch?v=J03p5l2V64I (YouTube/KapKoder)

https://www.youtube.com/watch?v=o0j7PdU88a4&t=216s (YouTube/Single Sapling Games)

https://www.youtube.com/watch?v=ixlIaMuhkbM (YouTube/Nejo FTW)

Comments

Popular posts from this blog

Introduction Post - I want to talk about music today

Week 09 - Project (Alpha)

Week 4 - Game Idea Research