How To Make a Jumpscare in Unity

Поделиться
HTML-код
  • Опубликовано: 2 ноя 2024

Комментарии • 21

  • @GunzzYT
    @GunzzYT  Год назад +6

    Make sure that your First Person Controller is tagged as the player!
    select your first person controller -> inspector -> tag and select "Player".
    If you dont see the tag "Player" make a new tag called "Player".

  • @frankieplayzz8382
    @frankieplayzz8382 6 месяцев назад +1

    Thanks for tutorial very easy to follow and works perfectly.

  • @grim6780
    @grim6780 11 месяцев назад +1

    My jump scare won't trigger. Any idea what's wrong. I followed every.

  • @penguinblox1856
    @penguinblox1856 10 месяцев назад +3

    It says no definition for "gameobject" (19,18), any thoughts or ideas on how to fix this?

  • @AlonePirate02
    @AlonePirate02 Год назад +2

    Amazing tutorial thank you.

  • @doziaress
    @doziaress 5 месяцев назад +1

    my jumpscare isn't stoping it is just a loop pls help me

  • @ThatOneDev476
    @ThatOneDev476 Год назад +1

    I'm new to unity and I don't know how I'm gonnaa follow the script part please put it in description

  • @DanRobart
    @DanRobart Год назад +3

    Thank you ;)

  • @Glarer
    @Glarer 6 месяцев назад +1

    i made it and the audio isnt playing
    help

  • @ldskategaming2083
    @ldskategaming2083 Год назад +1

    How much course for the unity Codding 🔍

  • @grim6780
    @grim6780 11 месяцев назад +2

    I figured it out.

    • @penguinblox1856
      @penguinblox1856 10 месяцев назад +1

      whats was the problem/fix?

    • @grim6780
      @grim6780 10 месяцев назад +3

      ​@@penguinblox1856I will look at it later and get back to you. I don't remember it off the top of my head.

  • @daily.modivation
    @daily.modivation 6 месяцев назад +1

    for me it sais other does not exist oin the current context

  • @OskarVR1
    @OskarVR1 Год назад +3

    Can you pls add the script in comments it dont work for me i think i did the script wrong

    • @hiFizz1
      @hiFizz1 Год назад +2

      If you've copied the code and it still doesn't work its maybe because you forgot to attach the script TO THE GAMEOBJECT that will be triggered also you maybe forgot to the tag for your Player. To do this go to your player prefab/gameobject -> inspector -> at the top you have a tag thing go there and press add another tag AND type Player (Same as in the script ).And stop asking for code and learn to do it for yourself .

  • @NIGHTFOX7852
    @NIGHTFOX7852 7 месяцев назад

    Plz bro script link

    • @Glarer
      @Glarer 6 месяцев назад

      using System.Collections;
      using System.Collections.Generic;
      using UnityEngine;
      public class jumpscares : MonoBehaviour
      {
      public GameObject JumpScareImg;
      public AudioSource audioSource;
      void Start()
      {
      JumpScareImg.SetActive(false);
      }
      private void OnTriggerEnter(Collider other)
      {
      {
      JumpScareImg.SetActive(true);
      audioSource.Play();
      StartCoroutine(DisableImg());
      }
      }
      IEnumerator DisableImg()
      {
      yield return new WaitForSeconds(2);
      JumpScareImg.SetActive(false);
      }
      }

  • @chickengunplayer3065
    @chickengunplayer3065 6 месяцев назад

    Add pls scricts

    • @Glarer
      @Glarer 6 месяцев назад

      using System.Collections;
      using System.Collections.Generic;
      using UnityEngine;
      public class jumpscares : MonoBehaviour
      {
      public GameObject JumpScareImg;
      public AudioSource audioSource;
      void Start()
      {
      JumpScareImg.SetActive(false);
      }
      private void OnTriggerEnter(Collider other)
      {
      {
      JumpScareImg.SetActive(true);
      audioSource.Play();
      StartCoroutine(DisableImg());
      }
      }
      IEnumerator DisableImg()
      {
      yield return new WaitForSeconds(2);
      JumpScareImg.SetActive(false);
      }
      }