Problem with animating scripts

Hi! I’m new to Unity and I want to make a 2D game. I created a few animations like walking to the left/right/up/down but when I want to write the script I have a problem. I watched a few tutorials on youtube and on this site but I see that everyone has it and I don’t.
Why “Animator” doesn’t appear?

3585253--290105--Untitled.png

That looks like perhaps it’s a screenshot of the intellisense pop-up in your code editor. I don’t know why it’s not suggesting Animator; I blame the editor. You can probably just ignore its broken intellisense, and keep right on typing. (Or do what I do: install Script Inspector 3, which is life-changingly awesome.)

However… since I happen to have a link on the clipboard that’s directly relevant to what you’re trying to do, please check out this article: 2D Animation Methods in Unity. This will clearly lay out the three different approaches to what you’re trying to do, and put you way ahead of most Unity beginners.

Yeah i tried to copy a lot of examples but none of them work. Should I reinstall Microsoft Visual or maybe I need to install more to it? I’m gonna check Script Inspector 3 and tell you if it works or not. Thank you.

Si3 will certainly work. I don’t know what’s wrong with Visual Studio for you (I don’t use it myself).