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

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) < tooClose){ moveSpeed = 0; } That way once the AI's distance between the player and the AI...

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
Browsing all 90 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>