How to Make a Basic First Person Horror Game in Unity (Part 1) - Unity C# Tutorial 2022

preview_player
Показать описание
This is part 1 to my 'How to Make a Basic First Person Horror Game in Unity' tutorial series. I was gonna include more in this part but the video got to a length where I thought it would be better to split it off.

#Unity #Unity3D #GameDevelopment

Be sure to like, comment, and subscribe if you want part 2 or just more Unity tutorials or videos from me in general. 👍

SC_FPSController Script:

Follow me on Twitter:

Try out my games:

Forgehub:

Subscribe to my Second Channel:

Join my Discord:

Facebook Page:

Music Used:
Licensed under Creative Commons: By Attribution 4.0 License

Licensed under Creative Commons: By Attribution 4.0 License
Рекомендации по теме
Комментарии
Автор

Your tutorial is the best intro to learning Unity I have seen. Thank you so much! 🙏

snakeappletree
Автор

door script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Door : MonoBehaviour
{
public GameObject door_closed, door_opened, intText;
public AudioSource open, close;
public bool opened;

void OnTriggerStay (Collider other){
if
if (opened == false){
intText.SetActive(true);
if
door_closed.SetActive (false);
door_opened.SetActive(true);
intText.SetActive (false);
//open.Play();
StartCoroutine(repeat());
opened = true;
}
}
}
}
void OnTriggerExit (Collider other){

intText.SetActive (false) ;
}
}
IEnumerator repeat (){
yield return new WaitForSeconds(4.0f);
opened = false ;
door_closed.SetActive(true);

//close.play();
}
}

alexsgb
Автор

These simple tutorials are so good, because it covers all the basic stuff without doing a whole maraton covering every single advanced detail of the engine. It just go direct to the point in a basic, simple and functional way, so that the learner can go himself from these basics to more advanced stuff if he/she wants. Nice work!

Capybara
Автор

Underrated video. Keep up the good work dude <3

farewellmarcus
Автор

Thank you very much! I started learning unity just 2 days ago and I'm making horror game as I dreamed of

fizruk
Автор

Omg thank you this’ll help me out a lot and since I’m getting a laptop on my birthday I don’t need to really wait

zakmasonplayz
Автор

go to your graphics card settings by getting the nvidia app to smooth out those edges in unity

cyzeck
Автор

Hi Omogonix, love the tutorials. Just curious if it is normal for the door to lag before opening when you press E? Mine seems to have a delay of a few seconds before it opens and it also doesn't respond immediately when I press E sometimes. I have to press E repeatedly many times. I can't seem to figure out where this "delay" comes from.

tycasts-sc
Автор

Thanks bro for this amazing tutorial...
But my door not opened can you please help me ?

memer
Автор

Can you tell me what is better to use in the player script: Character Controller or Rigidbody

xx_gamedev
Автор

I cant use the normal Text optoin and when i user text mesh-pro it only shows at a specific angle can somebody help me?

Spuk-iu
Автор

Great work from your part. Don't know if i ll be able to do something decent (actually, certainly not...) but still very fun to be able to try it out, thx to you

choucrouttecarnage
Автор

Hey Omogonix, when my door opens, It doesn't close. Do you think you can help me

joshymcsquashy
Автор

Found this video because I got inspired by how dark and liminal my workplace is at night. Time to get to work I guess haha

drg
Автор

hey, im trying to learn unity and this helps a lot! thanks man

sayad
Автор

if anyone wants the script here it is


using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Door : MonoBehaviour
{
public GameObject doorClosed, doorOpened, intIcon;
public float openTime;

void OnTriggerStay(Collider other){

intIcon.SetActive(true);

intIcon.SetActive(false);
doorClosed.SetActive(false);
doorOpened.SetActive(true);
StartCoroutine(closeDoor());
}
}
}
IEnumerator closeDoor(){
yield return new WaitForSeconds(openTime);
doorOpened.SetActive(false);
doorClosed.SetActive(true);
}
void OnTriggerExit(Collider other){

intIcon.SetActive(false);
}
}
}

theunitydevs
Автор

Im so bad at scripting but im gonna try until i gonna learn btw love your videos!
😍😍😍😍

TornBlox
Автор

For the player camera I suggest making the camera a child of the player objects and resetting the transform. After that make the position Y to 0.5 thats most ideal for me. Let me know what you think buy replying :)

pytz
Автор

Hi I have a problem with the intraction icon. When I get close to the door the dot won't appear.I did as you said. What should I do now?

dadug
Автор

Hi, I managed to get my door to open. But there is a problem when I press E closed door opens but disappears and comes back after 4 sec. Instead of an open door appearing like you have on the right, the door actually disappears.

ikac
join shbcf.ru