Monday, December 23, 2013

Space Shooter Day 3

After spending majority of yesterday re learning basic of Java scripting today I was able to do able script for my player object which is a simple command allow movement base on input. Meaning I can now write a script ordering an object to move to corresponded to the set key, which in this case the object is able to move according to the directional keys.

First player script 

Lesson Learn:

Coding or computer languages is VERY specific. everything must be written in a certain way and even if you miss one thing the whole thing won't work. the mistakes I make often is forgetting to put ; at the end of each line. In scripting each line must end in ; ( I have no idea why, my upperclassmen just told me that, that just the way it is. Maybe I should look it up) and another mistake I make often is spelling error. you must spelling each words correctly! otherwise the computer will fail to recognize the code. Luckily Unity have console check that kind of give you an idea of where the error might be.


Comments:

Now I get the ideas of how work must be put into those games I see. Like MMO, and all the console games. If a simple shooter take this much time no wonder many games take years to be made. Now every time I play games I will appreciated all the work they put into it.


No comments:

Post a Comment