Monday, 9 February 2015

Interactivity - Moving the Player

  1. To move the script we need to create a code in c#. The  purpose of C# is to precisely define a series of operations that a computer can perform to accomplish a task. Most of these operations involve manipulating numbers and text, but anything that the computer can physically do can be programmed in C#
  2. A new script component should be added to the ship and be named with capital letters at the beginning of each word to make them easier to read.  This script will then open in mono developer ( a companion app that comes with unity to write scripts ) 
  3. here is the finished code i wrote to make the ship move around the screen but not fall out of the parameters of the screen. It also tilts from from side to side as it move.  
                                here is a video of what the code looks like when applied

                                   

Unity has a documentation that contains all the code words and explains what they do, like a coding dictionary. once you have wrote the code    you should save it and check that it all works correctly and that     there are no errors. 

No comments:

Post a Comment