Quantcast
Channel: Answers by "dscroggi"
Browsing index pages (57 articles)
↧

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 Article


Answer by dscroggi

I cast a vote for IEnumerable

View Article


Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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 Article

Answer by dscroggi

http://www.youtube.com/watch?v=li6ha2d8Arw BurgZergArcage on how to make statistics.

View Article


Answer 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 Article

Answer 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 Article


Answer 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 Article

Answer 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 Article


Answer by dscroggi

[http://www.youtube.com/watch?v=YYqzz1dy3Ak][1] [1]: http://www.youtube.com/watch?v=YYqzz1dy3Ak

View Article

Answer 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 Article

Answer 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
Browsing index pages (57 articles)


Latest Images