The Powerpoint is up and running on the Dropbox and let me know what you think and on a side note study the Powerpoint too so that way we all know what we are and have to talk about!
I changed the section on the code. It gives a description of each code line. I have a family emergency that will prevent me from coming in today. I will post by tonight or tomorrow night the new sets of codes I have for FOV, and the code commands to get the items (i have done it as a code breaker , like saying use A, B, C on keyboard in the correct order to obtain item) Think you guys will like it.
here is the new wording encase you cannot open it on the drop box -
The programming in this game can get complicated. The enemies have to detect the player and not walk into objects; alarms will go off if the player is caught . Here is some of the code that is being used on the first enemy: var turnSpeed : float = 5; ---- determines how fast the enemy turns var at: int = 0; ---- the at (position) counter var myTimer : float = 10; ---- this is the detection time allowed
function Update () { speeds = .03; ---- this is the enemy’s speed at += 1; ---- this starts the at count and adds by 1 If(at >= 0.00 && at <=520.00){ ---- this function tells the enemy transform.position.z -= speeds; when to adjust direction. }
Basically what this means is the enemy is in a set path, which changes direction base on the “at” count.
I hope all is going well, and I really really wish I could see whats going on in the game. The game won't run on my computer. same issue as last time, its running a newer version than what I have.
I gave Ryan a copy as well. It should run - make sure your running the sub folder file unity_test2. you will need to remove one line of script (says visiable) and then it will run. Let me know if you have any issues.
Ryan must have the latest unity update as well. I have the same build of unity as the school. but i do know you work on the school's computer. All I do is open whats in the project folder and it gives me the error that I have an older version of Unity.
I changed the section on the code. It gives a description of each code line. I have a family emergency that will prevent me from coming in today. I will post by tonight or tomorrow night the new sets of codes I have for FOV, and the code commands to get the items (i have done it as a code breaker , like saying use A, B, C on keyboard in the correct order to obtain item) Think you guys will like it.
ReplyDeletehere is the new wording encase you cannot open it on the drop box -
ReplyDeleteThe programming in this game can get complicated. The enemies have to detect the player and not walk into objects; alarms will go off if the player is caught . Here is some of the code that is being used on the first enemy:
var turnSpeed : float = 5; ---- determines how fast the enemy turns
var at: int = 0; ---- the at (position) counter
var myTimer : float = 10; ---- this is the detection time allowed
function Update () {
speeds = .03; ---- this is the enemy’s speed
at += 1; ---- this starts the at count and adds by 1
If(at >= 0.00 && at <=520.00){ ---- this function tells the enemy
transform.position.z -= speeds; when to adjust direction.
}
Basically what this means is the enemy is in a set path, which changes direction base on the “at” count.
I hope all is going well, and I really really wish I could see whats going on in the game. The game won't run on my computer. same issue as last time, its running a newer version than what I have.
ReplyDeleteI gave Ryan a copy as well. It should run - make sure your running the sub folder file unity_test2. you will need to remove one line of script (says visiable) and then it will run. Let me know if you have any issues.
ReplyDeleteRyan must have the latest unity update as well. I have the same build of unity as the school. but i do know you work on the school's computer. All I do is open whats in the project folder and it gives me the error that I have an older version of Unity.
ReplyDeleteI down graded to 3.1 and i never asked me to update when i can the same copy as the school file. Im not sure - I guess we will see in class today
ReplyDelete