If you’re reading this, there probably aren’t very many posts yet. But don’t worry, you can be the first! Either create a new post or just reply to this one to say ‘hi’.
Hi All,
I’m having strange issues when it comes to the font size and text.
Font Size 1 Below
!Font Size 10 in the bottom right: Note that the font is actually small as all hell.
!Trying font 2 as in the lecture it disappears completely or its outsize the canvas and I can’t see it at all. Other font sizes seem to randomly not fit as well. I almost need to use a super huge font size (32) for it to show up and match whats in the lecture, so I’m trying to figure out why this does this?
During the challenge Ben uses this code here
for(int keyIndex = 1; keyIndex < abilities.Length; keyIndex++)
{
if(Input.GetKeyDown(keyIndex.ToString()))
{
AttemptSpecialAbility(keyIndex);
}
}
Why does this code here not work?
// if(Input.GetKeyDown(KeyCode.Keypad1))
// {
// AttemptSpecialAbility(abilities[1]);
// }
I am hardcoding in the array call I am looking for and selecting the keycode I wanted. The inspector says this to me. Cannot convert expression type to int.
Also I am using Monodevelopment right now and the automatic info tab does not pop up for me nearly as often as Ben’s does so how was I supposed to know that the Input.GetKeyDown(“Wanted a string here”))
Monodevelop was looking through actual code but did not present the same summary as what was displayed for Ben.
Tim