KnowItAllGames

Members
  • Content count

    19
  • Joined

  • Last visited

Community Reputation

114 Neutral

About KnowItAllGames

  • Rank
    Member

Recent Profile Visitors

395 profile views
  1. Mesh facing the wrong way!

    Ok but when i rotate the monster and do the script he just walks to his right facing forward? im sorry i think being stupid, i might have done the script wrong can you please edit it the way you explained?
  2. How do i rank up?

    Ah ok thanks
  3. Mesh facing the wrong way!

    There is a screen shot and here are the scripts for he AI using System.Collections; using System.Collections.Generic; using UnityEngine; public class AIScript : MonoBehaviour { public float fpsTargetDistance; public float enemyLookDistance; public float attackDistance; public float enemyMovementSpeed; public float damping; public Transform fpsTarget; Rigidbody theRigidbody; Renderer myRender; // Use this for initialization void Start () { myRender = GetComponent<Renderer> (); theRigidbody = GetComponent<Rigidbody>(); } // Update is called once per frame void FixedUpdate () { fpsTargetDistance = Vector3.Distance (fpsTarget.position, transform.position); if (fpsTargetDistance < enemyLookDistance) { myRender.material.color = Color.yellow; lookAtPlayer (); print ("Look at dah player"); } if (fpsTargetDistance < attackDistance) { myRender.material.color = Color.red; attackPlease (); print ("Attack"); } else { myRender.material.color = Color.blue; } } void lookAtPlayer(){ Quaternion rotation = Quaternion.LookRotation (fpsTarget.position - transform.position); transform.rotation = Quaternion.Slerp (transform.rotation, rotation, Time.deltaTime * damping); } void attackPlease(){ theRigidbody.AddForce (transform.forward * enemyMovementSpeed); } }
  4. On my profile page i see i am a member with 2 dots so how do i rank up and what are the dots, also are there benefits of ranking up?
  5. Pixels?

    How many do i need? cause i have more than a lot of people i see
  6. Mesh facing the wrong way!

    I just tried this it doesnt seem to work i will try and send a video I attached a video below also what i show in the video isnt the original problem before the monster was upright and just faced his right side towards me 2017-06-20_09-50-31.mp4
  7. Hi i have script that i believe is meant to restart my character/scene when i collide with an Obstacle but it doesnt work!
  8. I need a script for a Play and a Quit buttons i already have the buttons set up i just need some script (In C#)
  9. Mesh facing the wrong way!

    I imported the file but there was no empty 3D object? i added one but it just went off on its own without the mesh
  10. Horror AI

    Well i can give you any information you need about the scene?
  11. Horror AI

    Thanks
  12. Horror AI

    using System.Collections; using System.Collections.Generic; using UnityEngine; public class AIScript : MonoBehaviour { public float fpsTargetDistance; public float enemyLookDistance; public float attackDistance; public float enemyMovementSpeed; public float damping; public Transform fpsTarget; Rigidbody theRigidbody; Renderer myRender; // Use this for initialization void Start () { myRender = GetComponent<Renderer> (); theRigidbody = GetComponent<Rigidbody>(); } // Update is called once per frame void FixedUpdate () { fpsTargetDistance = Vector3.Distance (fpsTarget.position, transform.position); if (fpsTargetDistance < enemyLookDistance) { myRender.material.color = Color.yellow; lookAtPlayer (); print ("Look at dah player"); } if (fpsTargetDistance < attackDistance) { myRender.material.color = Color.red; attackPlease (); print ("Attack"); } else { myRender.material.color = Color.blue; } } void lookAtPlayer(){ Quaternion rotation = Quaternion.LookRotation (fpsTarget.position - transform.position); transform.rotation = Quaternion.Slerp (transform.rotation, rotation, Time.deltaTime * damping); } void attackPlease(){ theRigidbody.AddForce (transform.forward * enemyMovementSpeed); } } This is my movement code for my creature and its all i have towards actually making it actually roam the NavMesh
  13. Horror AI

    No honestly im clueless as how to make this work.
  14. Horror AI

    I've actually just created the NavMesh but im not sure how i get my creature to roam the NavMesh do you think you could help? also what kind of code would you like me to show you?
  15. So i imported my mesh into unity and when it moves it acts like its right side is his front and start walking sideways! i tried re importing it and i tried making the mesh again but facing it a different way but it doesnt change in the game please help ive been trying to fix it for ages!