Answer by doomprodigy
If I get what your saying. You want to disable a object and enable the rest. use SetActiveRecursively if true it will enable the item/activate and that object children aswell. if false it will deactive...
View ArticleAnswer by doomprodigy
Writing a script to attach a decal to a wall and emit a dust cloud is simple.var BulletHole : GameObject; var Smoke : GameObject;// Later on inside shoot function where the raycast hits something...
View ArticleAnswer by doomprodigy
Unsure on what the cause is, though make it gofunction Update(){ if(isRunning == true) { animation.CrossFade("run"); } else if(isRunning == false) { animation.CrossFade("Take 001"); } var...
View ArticleAnswer by doomprodigy
Model the Scarf etc first and then add it to the current model with colliders as GBStudios said, then add the modifier. This will work for Scarfs, Capes etc. For a cloak or robe etc, model it with your...
View ArticleAnswer by doomprodigy
Unsure if this is what you are looking for but to stop an object moving on the Y Axis use.transform.eulerAngles = new Vector3(0,transform.eulerAngles.y,0);Untested*Peace, Aaron Lewis
View ArticleAnswer by doomprodigy
Since those methods are not working for you. Maybe use an empty gameobject above the mushroom with a trigger and when you enter that trigger sendmessage to call the jump function and subtract health...
View ArticleAnswer by doomprodigy
I am unsure as to how the enemy in the FPS Tutorial is working but in the AI, I programmed for my FPS my enemy used a raycast for shooting, simply aim a raycast at the diagonal angle that would hit you...
View ArticleAnswer by doomprodigy
It depends on how you model your character, are you modeling him whole with legs and everything or are you just modeling the gun and hands. Your question is very confusing. I model the weapon and the...
View ArticleAnswer by doomprodigy
Write your own script. If you just use scripts you find on the wiki or in the standard assets you wont gain anything unless you understand how they work. And if you understand how they work you can...
View ArticleAnswer by doomprodigy
Really those will slightly help you but what will guarantee that you learn scripting in unity well is the Unity Scripting Reference. Considering that you have a fair grasp on other languages you should...
View ArticleAnswer by doomprodigy
Meltdown is completely correct, no one will write code for you especially when all of the resources are around you to do what you want. For Shooting and Reloading look at the old FPS Tutorial scripts....
View ArticleAnswer by doomprodigy
You question is not a question. It has no code to fix. You haven't shown or attempted anything. If I did take it as a question use the Search Function, The Forums and Google. I'm 100% sure you will...
View ArticleAnswer by doomprodigy
I suggest using an int.private int swingNum = 0; private bool swinging = false; public float swingTime = 2.0f; void Update (){ if (Input.GetButtonDown("whatever")){ if (swinging == false){ if (swingNum...
View ArticleAnswer by doomprodigy
using UnityEngine; using System.Collections; public class Look : MonoBehaviour { private Vector3 inputRotation; private Vector3 mousePlacement; private Vector3 screenCentre; void Update () {...
View ArticleAnswer by doomprodigy
What you want to use for a easy method is just a if (Vector3.Distance(other.position, transform.position) < tooClose){ moveSpeed = 0; } That way once the AI's distance between the player and the AI...
View ArticleAnswer by doomprodigy
private int attackNum = 0; private bool attacking = false; void Update (){ if (Input.GetButtonDown("Attack")){ if (attacking == false){ if (attackNum == 0){ StartCoroutine("AttackOne"); attackNum += 1;...
View ArticleAnswer by doomprodigy
It is not to do with your enemy spawner. It has something to do with the prefab that you are instantiating. Look down the prefab in the inspector and see if the prefab has gaps such as None(GameObject)...
View ArticleAnswer by doomprodigy
Texture size, Textures Format, There is nothing much you can do about project size. What is limiting you size? There is not much you can do about your Models and the size of them. FBX is standard for...
View ArticleAnswer by doomprodigy
You can swap which material is on by using. public Material[] materials; void SwapMaterial0 () { renderer.sharedMaterial = materials[0]; } void SwapMaterial1 () { renderer.sharedMaterial =...
View ArticleAnswer by doomprodigy
What I would do as dannyskim said is move the transform position of the camera to the character. So On a script that is attached to the player add this: void Start () { mainCamera = (GameObject)...
View Article