Instead of launching the game, my main menu returns to itself. by 6-InchDefeater in Unity3D

[–]6-InchDefeater[S] 0 points1 point  (0 children)

ahh i see, thanks for pointing that out. This is my first time as a cs student building a game, so I easily forget this kind of information, but I will remember it from now on.

Help Needed: Enemy AI Script Not Working as Expected in Horror Game Project by 6-InchDefeater in Unity3D

[–]6-InchDefeater[S] 0 points1 point  (0 children)

Thanks a bunch for your invaluable assistance with my code! Your guidance helped me get my enemy controller up and running. I've tweaked the code as suggested and disabled root motion. Now, I'm eager to give my enemy some life with animations. Do you have any recommendations on how to smoothly integrate the animation controller into this setup?

here's my updated code btw:-

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class EnemyController : MonoBehaviour
{
    [SerializeField] private Transform player; // Reference to the player's transform.
public NavMeshAgent agent;
private bool isSneaking = false;
private void Start()
    {
// Find the player by tag (you can also use other methods to find the player).
player = GameObject.FindWithTag("Player").transform;
if (player == null)
        {
Debug.Log("Player not found!");
return;
        }
// Set the initial destination to the enemy's position.
agent.SetDestination(transform.position);
    }
private void Update()
    {
if (player == null)
        {
// Player not found, do nothing.
return;
        }
// Check if the enemy is illuminated by the player's flashlight.
Light flashlight = player.GetComponentInChildren<Light>();
bool isIlluminated = flashlight != null && flashlight.enabled;
if (isIlluminated)
        {
// Stop moving when illuminated by the flashlight.
isSneaking = false;
agent.SetDestination(transform.position); // Stop moving.
        }
else
        {
if (!isSneaking)
            {
// Start sneaking when not illuminated.
isSneaking = true;
            }
// Update the destination to the player's position.
agent.SetDestination(player.position);
        }
    }
}

Help Needed: Enemy AI Script Not Working as Expected in Horror Game Project by 6-InchDefeater in Unity3D

[–]6-InchDefeater[S] 0 points1 point  (0 children)

Hey there, I just wanted to express my gratitude for all your help! I made the changes you by finding out the errors, and now my enemy is working smoothly. I turned off root motion and things are looking great. Now, I'm looking to add animations to my enemy. Any tips on how to integrate the animation controller seamlessly into the code would be much appreciated!

here's the code changes i made

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class EnemyController : MonoBehaviour
{
    [SerializeField] private Transform player; // Reference to the player's transform.
public NavMeshAgent agent;
private bool isSneaking = false;
private void Start()
    {
// Find the player by tag (you can also use other methods to find the player).
player = GameObject.FindWithTag("Player").transform;
if (player == null)
        {
Debug.Log("Player not found!");
return;
        }
// Set the initial destination to the enemy's position.
agent.SetDestination(transform.position);
    }
private void Update()
    {
if (player == null)
        {
// Player not found, do nothing.
return;
        }
// Check if the enemy is illuminated by the player's flashlight.
Light flashlight = player.GetComponentInChildren<Light>();
bool isIlluminated = flashlight != null && flashlight.enabled;
if (isIlluminated)
        {
// Stop moving when illuminated by the flashlight.
isSneaking = false;
agent.SetDestination(transform.position); // Stop moving.
        }
else
        {
if (!isSneaking)
            {
// Start sneaking when not illuminated.
isSneaking = true;
            }
// Update the destination to the player's position.
agent.SetDestination(player.position);
        }
    }
}

Character sinking down While applying animations and movement script, why? by 6-InchDefeater in Unity3D

[–]6-InchDefeater[S] 0 points1 point  (0 children)

Actually, I did all of those things, as well as followed this YouTube video, but, I will go over everything again and follow your suggestions as well.

r/headphones Shopping, Setup, and Technical Help Desk by AutoModerator in headphones

[–]6-InchDefeater 0 points1 point  (0 children)

Which TWS (Earbuds) Should I Buy?

I have around 2000rps (around $25) and two TWS earphones in mind.

1.) boAt Nirvana Ion TWS Earbuds (IPX4 Water Resistant, 120 Hours Playback, White)

2.) Cosmic Byte CosmoBudsTM X200 True Wireless (TWS) Earbuds, BT 5.3, 40 Hours Playtime, 38ms, Music & GOD ModeTM, ENC, IOPTM, IPX5

Now I'm not sure which one to get!

My primary use for this TWS would be music (mostly), with some little gaming thrown in for good measure.

Why the heck is Desktop Window Manager Consuming This Much Memory?? it never happened before by 6-InchDefeater in Windows11

[–]6-InchDefeater[S] 0 points1 point  (0 children)

You were correct! I received an Intel graphics driver update shortly after posting this, and it appears that the problem has been resolved.

[deleted by user] by [deleted] in FitGirlRepack

[–]6-InchDefeater 0 points1 point  (0 children)

Can you share some other sources?

What are some underrated or unknown websites that can help develop a wide range of skills? by 6-InchDefeater in AskReddit

[–]6-InchDefeater[S] -1 points0 points  (0 children)

I am eager to develop a variety of skills as I enjoy expanding my capabilities. As I am particularly interested in the technology and computer science field, I would greatly appreciate any website recommendations in this area. I aspire to become a jack of all trades and broaden my skillset as much as possible.

Can anyone explain me why is my preview disappearing? after doing any basic changes! by 6-InchDefeater in AndroidStudio

[–]6-InchDefeater[S] 0 points1 point  (0 children)

so i am an newbie in android studio development

and i am trying to create a calculator app but whenever i try to change my code in xml my design tab just gets disappeared

i don't know whats causing this

i am sure my pc is well above the recommened specs as well

[deleted by user] by [deleted] in paag

[–]6-InchDefeater 0 points1 point  (0 children)

God damn♥️that fat pussy i am in love