Answer by dscroggi
hard to tell with only the client code. looks ok overall just see one thing, setbuffer is not getting called before the receive try [this] video series, it uses saea[1] [1]:...
View ArticleAnswer by dscroggi
Great question Definitely use classes, if the characters are different types use an abstract base class. The absolute best way is to use a database of course, next best would be a less permanent form...
View ArticleAnswer by dscroggi
Something like this maybe? var gameMessageFont : Font; var current : int = 0; var questions : String[]; function Start () { GUI.skin.font = gameMessageFont; questions = ["Question 1", "Question 2"]; }...
View ArticleAnswer by dscroggi
That raycast is going to be true on all the nodes because it doesn't specify which node it's hitting. Try this, it's going to need some fixing up though function Update () { if(Input.GetMouseButton(0))...
View ArticleAnswer by dscroggi
Hmm how about a timer script with a public static method that can register your coroutines and call from your OnExecute? using System; using System.Collections.Generic; using UnityEngine; public class...
View ArticleAnswer by dscroggi
Let me get this straight, you want to send the 'Fire' function over the network so that other players get hit/see the sparks on the wall and you also want to send the mouse look over the network so...
View ArticleAnswer by dscroggi
You're totally right. I'm having that same problem. Here's how I'm fixing it, if all your terrains are the same size. I'm planning to make a Scene script and attach it to one gameobject that parents...
View ArticleAnswer by dscroggi
Try setting wheelsArray to an array of WheelCollider[] and call GetComponentsInChildren(WheelCollider) as WheelCollider[] The computer forgets it's a WheelCollider when it downcasts to Component. It's...
View ArticleAnswer by dscroggi
Well in general there should be two things happening. First the camera should have a home, and when it is not there, slowly move to it. The second thing is to set the home of the camera based on the...
View ArticleAnswer by dscroggi
Yes, it's possible. There are three ways to do it. 1. Child a static mesh to an animation bone. 2. Bake animations on to the armors and put them on top. 3. Use multiple Materials to create the illusion...
View ArticleAnswer by dscroggi
Maybe something like this? transform.rotation = Quaternion.Slerp(transform.rotation, target.rotation, damping); transform.position = transform.rotation * Vector3.back * offset + target.position +...
View ArticleAnswer by dscroggi
http://www.youtube.com/watch?v=li6ha2d8Arw BurgZergArcage on how to make statistics.
View ArticleAnswer by dscroggi
[System.Serializable] public class ButtonExample : MonoBehaviour { public string[] Text = new string[4] {"text1", "text2", "text3", "text4"}; public List MyList = new List(); public class IntValueClass...
View ArticleAnswer by dscroggi
Here are three possible solutions: 1. Use Unity's networking. The pros of this are that it's very simple and quick to learn and also you can use them for free. From experience these work well and are...
View ArticleAnswer by dscroggi
Calculus >< You could even adjust the prices in real time based on what's being bought. Although, if that's something you're interested in, you might be best off working the stock market. Could...
View ArticleAnswer by dscroggi
Try this: [http://docs.unity3d.com/Documentation/ScriptReference/CharacterController.Move.html][1] [1]: http://docs.unity3d.com/Documentation/ScriptReference/CharacterController.Move.html
View ArticleAnswer by dscroggi
[http://www.youtube.com/watch?v=YYqzz1dy3Ak][1] [1]: http://www.youtube.com/watch?v=YYqzz1dy3Ak
View ArticleAnswer by dscroggi
Sure! I am using the same methods in my own project right now. First let me say that a guy named Petey has a youtube channel called BurgZergArcade that has some really awesome Unity3d C# programming...
View ArticleAnswer by dscroggi
[http://files.m2h.nl//js_to_c.php][1] [1]: http://files.m2h.nl//js_to_c.php Courtesy of the guys at M2H game studio in the Netherlands.
View Article