Quantcast
Channel: Answers by "doomprodigy"
Browsing all 90 articles
Browse latest View live

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



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

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

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

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


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

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

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


Answer by doomprodigy

using UnityEngine; using System.Collections; public class Look : MonoBehaviour { private Vector3 inputRotation; private Vector3 mousePlacement; private Vector3 screenCentre; void Update () {...

View Article


Answer by doomprodigy

What you want to use for a easy method is just a if (Vector3.Distance(other.position, transform.position)

View Article

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

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

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


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

Answer 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


Answer by doomprodigy

If you put them all into a list that have the tag, then find the closest by distance. Something like this should work. public List targets; public string objectTag = "Object"; private Transform...

View Article

Answer by doomprodigy

Alright Firstly Have a script which contains all of your gloabal variables (So they can be called from all scripts, I like this way it keeps it nice and tidy.So you might haveVariableScript.csand this...

View Article


Answer by doomprodigy

Im unsure about how to fix your problem but I prefer to try to have all my scripts in a certain language rather than multiple languages as when it comes to compile time I know I will not have any...

View Article

Answer by doomprodigy

Fixed it, I forgot to add my audio to script, so It then decided that without the Audio the build would not work. Cheers for explaining Statement.

View Article

Answer by doomprodigy

With all of those tutorials it is very easy to start. I suggest you read through the Unity Script References. It helps you understand everything and gives you other examples on how you can utilize...

View Article
Browsing all 90 articles
Browse latest View live




Latest Images