Game Development Reference
In-Depth Information
Controlling the character with the
PlayerController_2D class
In this section, we will create a new script to control the movement of our character and a
sprite animation for each action of our character. We will use MonoDevelop as our script-
ing editor, which comes with Unity. MonoDevelop is mainly designed for the C# and .NET
environments, so if you are comfortable with C#, you will probably love it. However, if
you use Unity JavaScript , it also has many tools to help us write the script faster and de-
bug better, such as finding as well as replacing words in the whole project by pressing com-
mand + Shift + F in Mac or Ctrl + Shift + F in Windows and autocomplete (or Intellisense),
to name a few. Moving from Unity JavaScript to C# or C# to Unity JavaScript is also a
comparatively smooth transition.
Note
In this version of this topic, we will show examples for both Unity JavaScript and C#. You
can check out the major difference between Unity JavaScript and C# in the Appendix C ,
Major differences Between C# and Unity JavaScript .
Search WWH ::




Custom Search