a good tip for anyone making loops in c#: after typing the loop type (ex. for )), hit tab twice and it will give you a template to use it just makes things quicker and easy to remember.
Hey man, the last two videos have been great and incredibly easy to follow. I had to rewatch Part 5 about six times before it finally stuck in my brain. Keep up the good work, you explain the basics in a very straightforward manner and without going off on tangents about your cat, or postman or whatever. Good stuff! ;)
excellent - tutorials so far. this is the first series i have seen that has clicked so far. i think it is super important to know how this stuff works more than just copying code. keep it up.
I used OBS last year to play my PS2 using my computer with a device called an EasyCap, and it was the first software that actually worked properly using avi cables. It worked great not only for playing, but also for recording after I found the right settings (the EasyCap was...difficult to work with, to say the least, and the PS2 has a low resolution). My point is, the quality is great in the video. Thanks for this series, and the one where you make a simple game. They are really helpful.
Thank you very much :D I was watching another Unity Tutorial about making a game in Unity. And in the 6th part, he started coding ... And at that moment, when he just said "So, we will write our programs in JavaScript" i was like "NOOOOOOOOO" so I just moved to this tutorial xD
Thanks for letting us know about the practical implementation of array and loop in game perspective. I really like it and learning a lot watching your series. Recording quality of OBS is pretty good and I have also added you in my google+ circle ^_^
//AwfulMedia !!! Comment Awful Media, not correct name!! Debug.Log("Awesome Media); If you know what i mean.! Thank you so much sir! People like you are the reason, we can learn everything from our home where education on this subject is not available... you are a legend! We all love you Man !!!
Something you may want to use is a program titled "Mirillis Action!" It's marketed as a gameplay capture software, but it lets the user do things that usually require multiple programs just within itself. I would highly recommend it as I use it on my secondary account.
I think the new screen recording app is fine, maybe not as sharp as the sucky one to use, but good enough. I'm enjoying following this and getting the C# together - slowly, but with your help, surely. Thanks Austin. BTW, sometimes you sound like Obama - he's a good orator too.
I can't notice a difference between your screen recording software so if that is easier for you then I think you should use that from my part. Great tutorials by the way!
This video did not SUUCCKK, Ive seen a lot that just SUUUCKKK LOL. Good Videos man. You have me cracking up at 12:30 tho. Good Work Flow, Good Work Flow Im picking up on this stuff.
I'm enjoying your videos. I think maybe a "while" loop might have been a better starting point for loops. Your explanation (in my opinion) on the "for" loop is quite confusing!
I have a game im working that will need a loop a for loop. The character unlocks a super mode but I made a parent group which contains the 14 sprites that are full and another set of 14 sprites that are drawn black to appear empty, also each life bar is produced by acquiring 5,000 points. for every 5,000 points he gains a life bar and full l7fe is equaltoo 70,000 points. How can I go aboutthis ive tried switchstatements but thatnever worked out
If you have to specify the array 'size' in your code (arrayString = new string[2];), then what is the point of having the array available in the editor (Size: 5 - lets you define 5 items for your array)? How do I skip hard coding it and only using the editor?
Id like to ask a question that bridges two tutorials. How can i have a script which only stores the array for editing convenience, and use Get.Component or similar to access that array from a class in another script? Any help would be super appreciated.
You can go through all the elements using a for loop. For each element use an if statement to test that it is != Null. If that is true, print the element. That should work :)
+Yazuki Wolf Yes, simply do i += 2. You can change the '2' to any number you prefer. This also works for subtractions (-=),but does not work for multiplication or division. Which I find slightly odd. But I hope you enjoy.
It doesn't have to be i. I is just an integer that lives solely in the for loop. You could name it int loopCounter = 0 if you wanted to. But then in the second argument you would have to say loopCounter < 10 (or your array length or whatever number you need), and then in the third argument it would have to be loopCounter++ OR loopCounter = loopCounter + 1. So the for loop would look like this: for(int loopCounter = 0; loopCounter < 10; loopCounter++)
"i" is a convention that's been used in programming for several decades, and in several different languages. It stands for "iterator" as it iterates (fancy word for "loops") through all the possible values. When nesting multiple loops the next letters in the alphabet "j" and "k" are often used. It's one of the only cases where it's considered acceptable to only use a single letter for a variable name. Usually you want to make variable names more descriptive.
I've been watching your tutorials among many others on youtube. My problem is I cannot seem to understand any of it no matter how much I try to engrain it into my brain. Its like trying to speak another language when you know nothing of that language. Can you recommend any books or a reason why I am unable to understand any of this?
Might be because your brain wasn't wired when you were younger to process these information. The only thing I can think of is to apply for a program (definitely has to be in real life, not online) and get communication from a tutor. And lots of targeted homework :-)
+Mac The text editor he uses in this series comes with Unity, but there are legions of text editors available (eg. Sublime Text, Komodo Edit, Atom...) Visual Studio is Microsoft's proprietary text editor. It comes with a lot of great features and I am loving how well it is integrated with Unity.
When I run the game after making the loop it freezes... My code is here: using UnityEngine; using System.Collections; public class DemoScript : MonoBehaviour { public int[] arrayInt; void Start () { arrayInt = new int[3]; arrayInt[0] = 10; arrayInt[1] = 20; arrayInt[2] = 30; for (int world = 1; world < 5;) { print ("Looping!"); } } void Update () { } }
I think the reason why nothing happens it's because you forgot to increment your world var, I think it's like this for (int world = 1; world < 5; world ++)
how can ı optimize a loop system to my script ? After ı clicked button ı can disable my button and after 7 seconds ı can get it back button to game but that functions happen only once. How can script can work all time. Thanks for help. This is very important for me. public class Cooldown : MonoBehaviour { float timer = 0; public GameObject Enable_Disable; public void Enable() { Enable_Disable.SetActive(true); } public void Disable() { Enable_Disable.SetActive(false); } void Update() { timer = timer + Time.deltaTime; if (timer > 7) { Enable_Disable.SetActive(true); }
When i try to do the arrays they won't update to unity and show nothing in the console. I don't know what i am doing wrong, i have the code exactly like you in the video, but it still doesn't show the array strings in unity. Please help. My code: using UnityEngine; using System.Collections; public class Demo : MonoBehaviour { public int health; public string[] arrayString; void start() { arrayString = new string[2]; arrayString [0] = "Sword"; arrayString [1] = "Potion"; for (int i = 0; i
Haha that's a good one man! =p By the way, is it ok if i can get your advice on these android app below? I am still a beginner and hope to learn from everyone. Your feedback is greatly appreciated!... Kindly search ' *pub:Path Ahead* ' in Play Store (P & A are case sensitive). thanks and all-the-best !!
totally agree cam studio sucks , this works fine, audacity very good tool and this recording was clear even on a old computer. check out snagit also good for tutorials.
Just wanted to let you know, your series you made 3 years ago is still helping people like me learn Unity!
Yea he just needs to add a few more videos then make a advanced series
a good tip for anyone making loops in c#: after typing the loop type (ex. for )), hit tab twice and it will give you a template to use it just makes things quicker and easy to remember.
Really excellent videos!
Would love to see an advance c# unity course.
Hey man, the last two videos have been great and incredibly easy to follow. I had to rewatch Part 5 about six times before it finally stuck in my brain.
Keep up the good work, you explain the basics in a very straightforward manner and without going off on tangents about your cat, or postman or whatever. Good stuff! ;)
excellent - tutorials so far. this is the first series i have seen that has clicked so far. i think it is super important to know how this stuff works more than just copying code. keep it up.
These tutorials are great man. Came back to Unity and programming in general after a long hiatus, and this is really helping me out.
I used OBS last year to play my PS2 using my computer with a device called an EasyCap, and it was the first software that actually worked properly using avi cables. It worked great not only for playing, but also for recording after I found the right settings (the EasyCap was...difficult to work with, to say the least, and the PS2 has a low resolution).
My point is, the quality is great in the video. Thanks for this series, and the one where you make a simple game. They are really helpful.
Great stuff man! Love the vids, you're more relaxed and easygoing then most of the tuts I've seen so far so I'm definitely sticking to your tuts!
I like your tutorials so far, you explain things simple. Looking forward to all the other tutorials
Thank you very much :D
I was watching another Unity Tutorial about making a game in Unity. And in the 6th part, he started coding ... And at that moment, when he just said "So, we will write our programs in JavaScript" i was like "NOOOOOOOOO" so I just moved to this tutorial xD
Video quality is A-OK. Stick with what doesn't suck! Extremely grateful for the tutorials.
Thanks for letting us know about the practical implementation of array and loop in game perspective. I really like it and learning a lot watching your series. Recording quality of OBS is pretty good and I have also added you in my google+ circle ^_^
//AwfulMedia !!! Comment Awful Media, not correct name!!
Debug.Log("Awesome Media);
If you know what i mean.! Thank you so much sir! People like you are the reason, we can learn everything from our home where education on this subject is not available... you are a legend! We all love you Man !!!
Hi Austin - love your tutorials - thank so much for doing this!
Great video Austin! I'm still learning but your videos help a lot!
So far, so good. Thank you Austin.
Thanks for your vids, They are really helpful for me that I'm starting in Unity
Hope I learn a lot with you
Something you may want to use is a program titled "Mirillis Action!" It's marketed as a gameplay capture software, but it lets the user do things that usually require multiple programs just within itself. I would highly recommend it as I use it on my secondary account.
Austin i love you, you have a great tutorials!
you appreciate us watching? We appreciate you're helpful videos! Thank you!
these are great... thanks so much for making these. I have learned so much from you.
fucking love the quality mate, it's fucking great
I finally really understand arrays, thanks :D
Fantastic video. Also... "That's an inventory, don't even think about making one just yet." > goes and watches inventory tutorial.
Nice tutorials and I use OBS too for recording my gameplay videos. Its really nice for streaming too.
new to your channels and I love your guides:DD keep it up(Y)
I think the new screen recording app is fine, maybe not as sharp as the sucky one to use, but good enough. I'm enjoying following this and getting the C# together - slowly, but with your help, surely. Thanks Austin. BTW, sometimes you sound like Obama - he's a good orator too.
I can't notice a difference between your screen recording software so if that is easier for you then I think you should use that from my part. Great tutorials by the way!
Hi. Greate series, I have learned A LOT, but you could also mention how these things can be used in video game development. Thanks!
"I don't want to to think about even making one, but I want you to think about how to make one" Makes sence xD
OBS in early 2014, nice
This video did not SUUCCKK, Ive seen a lot that just SUUUCKKK LOL. Good Videos man. You have me cracking up at 12:30 tho. Good Work Flow, Good Work Flow Im picking up on this stuff.
I Am Learning So much from U. Loving This thanks U Are the Best
It's like every episode there are half the views of the last... Everyone gives up so easily... XD
right?? Better and less competition for us :D
Khaisar
less the better ahahahah
very helpfull tutorials
OBS is soooo legit. Also thanks for the tutorials
Love the vids keep goin!
I'm enjoying your videos. I think maybe a "while" loop might have been a better starting point for loops. Your explanation (in my opinion) on the "for" loop is quite confusing!
Best videos ever...
I have a game im working that will need a loop a for loop. The character unlocks a super mode but I made a parent group which contains the 14 sprites that are full and another set of 14 sprites that are drawn black to appear empty, also each life bar is produced by acquiring 5,000 points. for every 5,000 points he gains a life bar and full l7fe is equaltoo 70,000 points. How can I go aboutthis ive tried switchstatements but thatnever worked out
If you have to specify the array 'size' in your code (arrayString = new string[2];), then what is the point of having the array available in the editor (Size: 5 - lets you define 5 items for your array)? How do I skip hard coding it and only using the editor?
Never mind. You just remove: arrayString = new string[2]; and any hard coded array items.
Don't worry man! The quality of the video is enough good!
Could someone please explain the i++
I can see what it does, but I don't understand why it's written like that
Id like to ask a question that bridges two tutorials. How can i have a script which only stores the array for editing convenience, and use Get.Component or similar to access that array from a class in another script? Any help would be super appreciated.
+Matthew Wheatley Still need help?
Indeed =( I don't know if I've been searching using the wrong terminology, but I can't find help anywhere.
Could you please just simplify ur questio nthen, i didn't quite understand
arrayString.Length is the number of slots. Is there a way to identify the number of 'filled' slots so the empty ones don't print "Null"?Thanks :)
You can go through all the elements using a for loop. For each element use an if statement to test that it is != Null. If that is true, print the element. That should work :)
+Liam Truter Thanks! Will try it out tonight.
+Gen. Mark Keenaye Glad to help :)
Why`s "i++" make it go up by one each loop?
Is there a way to make it increase by more than one per loop?
+Yazuki Wolf Yes, simply do i += 2. You can change the '2' to any number you prefer. This also works for subtractions (-=),but does not work for multiplication or division. Which I find slightly odd. But I hope you enjoy.
great. Thanks for the help!
Yazuki Wolf Anytime
Sup Bro!, can you tell me please why we use in the for loop the letter "i"?? it's confusing!
Thanks
It doesn't have to be i. I is just an integer that lives solely in the for loop. You could name it int loopCounter = 0 if you wanted to. But then in the second argument you would have to say loopCounter < 10 (or your array length or whatever number you need), and then in the third argument it would have to be loopCounter++ OR loopCounter = loopCounter + 1. So the for loop would look like this: for(int loopCounter = 0; loopCounter < 10; loopCounter++)
blufosil Thank you!
Bests
"i" is a convention that's been used in programming for several decades, and in several different languages. It stands for "iterator" as it iterates (fancy word for "loops") through all the possible values. When nesting multiple loops the next letters in the alphabet "j" and "k" are often used. It's one of the only cases where it's considered acceptable to only use a single letter for a variable name. Usually you want to make variable names more descriptive.
acrosser8 Thank you very much! :D
I've been watching your tutorials among many others on youtube. My problem is I cannot seem to understand any of it no matter how much I try to engrain it into my brain. Its like trying to speak another language when you know nothing of that language. Can you recommend any books or a reason why I am unable to understand any of this?
Might be because your brain wasn't wired when you were younger to process these information. The only thing I can think of is to apply for a program (definitely has to be in real life, not online) and get communication from a tutor. And lots of targeted homework :-)
This is kind of the same as visual studio? What's the difference?
C#
Ok, thanks and thanks for replying.
+Mac The text editor he uses in this series comes with Unity, but there are legions of text editors available (eg. Sublime Text, Komodo Edit, Atom...)
Visual Studio is Microsoft's proprietary text editor. It comes with a lot of great features and I am loving how well it is integrated with Unity.
What happened with the Channel, it's been a while since the last video :(
When I run the game after making the loop it freezes... My code is here:
using UnityEngine;
using System.Collections;
public class DemoScript : MonoBehaviour {
public int[] arrayInt;
void Start ()
{
arrayInt = new int[3];
arrayInt[0] = 10;
arrayInt[1] = 20;
arrayInt[2] = 30;
for (int world = 1; world < 5;)
{
print ("Looping!");
}
}
void Update ()
{
}
}
I think the reason why nothing happens it's because you forgot to increment your world var, I think it's like this
for (int world = 1; world < 5; world ++)
NetvorMcWolf Without the iteration part the loop doesn't stop and causes that Unity freeze because the condition is always true.
how can ı optimize a loop system to my script ? After ı clicked button ı can disable my button and after 7 seconds ı can get it back button to game but that functions happen only once. How can script can work all time. Thanks for help. This is very important for me.
public class Cooldown : MonoBehaviour
{
float timer = 0;
public GameObject Enable_Disable;
public void Enable()
{
Enable_Disable.SetActive(true);
}
public void Disable()
{
Enable_Disable.SetActive(false);
}
void Update()
{
timer = timer + Time.deltaTime;
if (timer > 7)
{
Enable_Disable.SetActive(true);
}
}
Have you already solved this problem? If so, can you tell me how?
@@dayls8545 just add timer=0.0f;. İt will reset Timer and function.
@@lupinder2058 thanks
When i try to do the arrays they won't update to unity and show nothing in the console.
I don't know what i am doing wrong, i have the code exactly like you in the video, but it still doesn't show the array strings in unity.
Please help.
My code:
using UnityEngine;
using System.Collections;
public class Demo : MonoBehaviour {
public int health;
public string[] arrayString;
void start()
{
arrayString = new string[2];
arrayString [0] = "Sword";
arrayString [1] = "Potion";
for (int i = 0; i
+Bender The program is case sensitive. "start" and "update" don't exist. "Start" and "Update" do.
thanks your comments helped
it's good)
Haha that's a good one man! =p
By the way, is it ok if i can get your advice on these android app below? I am still a beginner and hope to learn from everyone. Your feedback is greatly appreciated!...
Kindly search ' *pub:Path Ahead* ' in Play Store (P & A are case sensitive).
thanks and all-the-best !!
totally agree cam studio sucks , this works fine, audacity very good tool and this recording was clear even on a old computer. check out snagit also good for tutorials.
theres only 5 austin, get it right!