Mini Unity Tutorial - How To Create A Jumpscare Using Trigger Or Timer

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025

ความคิดเห็น • 147

  • @JimmyVegasUnity
    @JimmyVegasUnity  6 ปีที่แล้ว +4

    Having trouble with the Zombie Animation? Check the solution here:
    th-cam.com/video/48hojHj3BQk/w-d-xo.html

    • @reap4037
      @reap4037 4 ปีที่แล้ว

      Thanks helped me a lot

    • @Alc0h0lic_G4mer52
      @Alc0h0lic_G4mer52 3 ปีที่แล้ว

      im having an issue with my camera. When im on the trigger, the camera is not rendered. Any solutions?
      nevermind i fixed that by repeated every step! Thank you Jimmy!

    • @dijanapiljanovic3352
      @dijanapiljanovic3352 2 ปีที่แล้ว

      @@Alc0h0lic_G4mer52 Hi could you tell me what the problem was?

    • @Alc0h0lic_G4mer52
      @Alc0h0lic_G4mer52 2 ปีที่แล้ว

      @@dijanapiljanovic3352 i repeated the tutorial carefully

  • @lukav200
    @lukav200 5 ปีที่แล้ว +12

    This was actually very well explained. Thank you!

  • @adeplays7684
    @adeplays7684 2 ปีที่แล้ว +2

    this helped me alot this is basically the foundation of my first game im currently making thank you for making this tutorial very well explained

  • @swagman007gaming8
    @swagman007gaming8 7 ปีที่แล้ว +35

    6:33 i tought that was the scream xD

    • @JimmyVegasUnity
      @JimmyVegasUnity  7 ปีที่แล้ว +9

      Scary isn't it hehe. Coughs and colds suck though.

  • @jaywoodo6978
    @jaywoodo6978 2 ปีที่แล้ว +1

    This is really helping me with my project! Thanks for making this tutorial man

  • @braxtonsdev9564
    @braxtonsdev9564 5 ปีที่แล้ว +3

    This looks amazing compared to some other tutorials. Nice work!

  • @twintron
    @twintron 7 ปีที่แล้ว

    These are some great tutorials JV.

  • @hellsgate700
    @hellsgate700 6 ปีที่แล้ว +3

    Cant wait to add this to my Learning ABC's For Kids unity game!

  • @ZaPyr0
    @ZaPyr0 6 ปีที่แล้ว +17

    I'm having trouble with this. when I enter the trigger it says Display 1 No Cameras Rendering

    • @scp6241
      @scp6241 4 ปีที่แล้ว

      @pure fascination Thanks mate

    • @citrusgrenade1084
      @citrusgrenade1084 3 ปีที่แล้ว

      @blotX what do you mean im having the same problem

  • @zombievirals
    @zombievirals 6 ปีที่แล้ว

    This is great!! Thanks again Jimmy Vegas!!

  • @FerliKos
    @FerliKos 7 ปีที่แล้ว +1

    Omg thank you, finally one tutorial that works 100% on unity

    • @JimmyVegasUnity
      @JimmyVegasUnity  7 ปีที่แล้ว +2

      All tutorials work in any version of Unity.

    • @sciencesosimple2418
      @sciencesosimple2418 3 ปีที่แล้ว

      @@JimmyVegasUnity thanks a lot for these amazing tutorials please make a playlist on a game in which we have to find treasure in a boat and everytime keys and boat spawns at a random place.........
      Thanks........

  • @jeffmaashoff5795
    @jeffmaashoff5795 4 ปีที่แล้ว +1

    That scream is what i sound like when i see a cockroach in my bed

  • @AxVanDreyk
    @AxVanDreyk 6 ปีที่แล้ว

    Thanks man! Digged a lot for such code. Needed to start timer at entering trigger.

  • @BoomZie
    @BoomZie 7 ปีที่แล้ว

    thanks a ton for the tutorials man! a real help!

  • @BravoPhantom
    @BravoPhantom 2 หลายเดือนก่อน

    10:45 I just clicked the video around there...Thank you for telling in advance "Brace Yourself" 😅

  • @karthikvbhat2054
    @karthikvbhat2054 3 ปีที่แล้ว

    really good video explained in a very simple manner

  • @ankitchoubey2270
    @ankitchoubey2270 3 ปีที่แล้ว

    You are my idle jimmy

  • @formlessarmour1151
    @formlessarmour1151 4 ปีที่แล้ว +1

    Thank you, this really help my game.

  • @zgtarget9754
    @zgtarget9754 3 ปีที่แล้ว

    thanks, i was making a game like ddlc, where it starts of happy then gets really creepy. it helped alot

  • @a-0983
    @a-0983 3 ปีที่แล้ว +4

    Loved the video Jimmy! I have one issue, I dunno what code to write if needed or how to stop the animation (trigger) from being played over and over when entering the trigger location.

  • @kinglegomaker
    @kinglegomaker 3 ปีที่แล้ว +1

    im getting a constant error saying "cant add script component because script class cannot be found". I think i did it wrong but i there is nothing telling me i did something wrong.
    EDIT: NVM i fixed it and im so happy

  • @kupsmander1565
    @kupsmander1565 6 ปีที่แล้ว +3

    Hello I need help. when I enter the trigger it says Display 1 No Cameras Rendering

    • @kupsmander1565
      @kupsmander1565 6 ปีที่แล้ว +2

      Same goes with the Timer it keep saying Display 1 No Cameras Rendering

  • @topas6347
    @topas6347 3 ปีที่แล้ว +3

    Why does my jumpscare reapeat itself as in a loop and it never end

    • @_-VIS-_
      @_-VIS-_ 11 หลายเดือนก่อน

      Same

    • @_-VIS-_
      @_-VIS-_ 11 หลายเดือนก่อน

      I can’t leave 😢

  • @zuzydev5745
    @zuzydev5745 2 ปีที่แล้ว

    I had jumpscare watching this, thanks btw

  • @kellenwalburn5238
    @kellenwalburn5238 7 ปีที่แล้ว +2

    thinking of doing this with a school project... omfg this will scare everyone. sadly, we are doing this in the newest version, and we are supposed to be doing group projects with the collab option, so i will have to find a way to disguise it

  • @dolphin-sd
    @dolphin-sd 6 ปีที่แล้ว +3

    it says no cameras rendering! why?

  • @gamemakerlocker3526
    @gamemakerlocker3526 7 ปีที่แล้ว +33

    Who actually jumped on the scare

  • @kmg1861
    @kmg1861 3 ปีที่แล้ว +1

    That scares me LOL 12:20

  • @jordon_crystalcoyote5183
    @jordon_crystalcoyote5183 3 ปีที่แล้ว

    Awsome Vedio Thx So Much!!

  • @3dworldforu
    @3dworldforu 4 ปีที่แล้ว +1

    thanks man :) and please more videos on without codes

  • @odu3326
    @odu3326 7 ปีที่แล้ว +1

    umm i have a problem so when the "jump scare" comes the flickering light keeps flickering after the scare... and doesnt stop

    • @Mikeul2GT
      @Mikeul2GT 5 ปีที่แล้ว

      flashImg.SetActive(false);

  • @LTHLMETEL
    @LTHLMETEL 6 ปีที่แล้ว +3

    People how can i fix display 1 not rendering

  • @ziq.kiel0519
    @ziq.kiel0519 6 ปีที่แล้ว

    Thanks So Much!!!

  • @peteypeetepete
    @peteypeetepete 2 ปีที่แล้ว +1

    Hi jimmy
    I'm having trouble with this. when I enter the trigger it says Display 1 No Cameras Rendering i tried looking for the render of whatever the problem is i cant find it how can i fix it?

    • @jaywoodo6978
      @jaywoodo6978 2 ปีที่แล้ว

      Very late reply but I just solved it. You gotta remove the lines where the player is set to inactive. When the player is inactive so are its children - the scare cam. So just leave it as active

  • @Fragelii
    @Fragelii 7 ปีที่แล้ว +2

    Hi could you help me ? Why do i stay blocked i the screamcam ?? ty

  • @Artistic_Game_Developer
    @Artistic_Game_Developer 11 หลายเดือนก่อน

    im facing an error sir! if i trigger the jump scare and just stand at the same spot then jumpscare keeps starting again n again. it just never ends. How do we fix this?

  • @mosmo618
    @mosmo618 7 ปีที่แล้ว

    Love it

  • @ratis13
    @ratis13 7 ปีที่แล้ว +3

    Hey Jimmy, thank you for this amazing tutorial. Was wondering if you could upload more videos for your Fps series.

  • @eshaanchaturvedi7344
    @eshaanchaturvedi7344 7 หลายเดือนก่อน

    Hey jimmy when i go through the jumpscare the background isnt rendered only the lighting and the animation occurs any idea why?

  • @trappeddarkhd1707
    @trappeddarkhd1707 6 ปีที่แล้ว +1

    what would I need to do to make the jumpscare with a image

  • @yahirgarcia9397
    @yahirgarcia9397 7 ปีที่แล้ว +3

    This Is The Trigger Version For Javascript Users
    public var impact : AudioClip;
    var audioSource : AudioSource;
    var ThePlayer : GameObject;
    var JumpCam : GameObject;
    var FlashImg : GameObject;
    function Start(){
    JumpCam.SetActive(false);
    FlashImg.SetActive(false);
    ThePlayer.SetActive(true);
    function OnTriggerEnter(){
    JumpCam.SetActive(true);
    FlashImg.SetActive(true);
    ThePlayer.SetActive(false);
    yield WaitForSeconds(2.02);
    JumpCam.SetActive(false);
    FlashImg.SetActive(false);
    ThePlayer.SetActive(true);
    }

  • @YapGD
    @YapGD 3 ปีที่แล้ว

    Jump is care, so care your jump :3

  • @xspsslayer
    @xspsslayer 4 ปีที่แล้ว

    when i get to the trigger the jumpscare starts but never ends and i have an error called NullReferenceException: Object reference not set to an instance of an object. Help me

  • @djohnworthy1040
    @djohnworthy1040 11 หลายเดือนก่อน

    How can we make a jumpscare after certain events are done ?

  • @grimreaper.flamearcade
    @grimreaper.flamearcade 6 ปีที่แล้ว

    Hello, how can i make jumpscare like in the resident evil 7, when Mia jumps on the main hero with the knife, and main hero is falling with her on the floor. Or a cutscene, when she is cutting his hand with chainsaw?

  • @real29062
    @real29062 7 ปีที่แล้ว

    Nice video....after you finish the Super Mario series you can start a clicker series ?

    • @JimmyVegasUnity
      @JimmyVegasUnity  7 ปีที่แล้ว

      +Realistics Vlogs it'll be a survival horror next. I have plans for a cookie clicker style game though, so keep a look out :)

    • @real29062
      @real29062 7 ปีที่แล้ว

      ok thank you for the answer :)

  • @TheGamingWiccan
    @TheGamingWiccan 5 ปีที่แล้ว

    could i do something like transitioning to another scene for a brief moment before snapping the player right back where they were when they first came into contact with the trigger then play a sound like a scream or some creepy music destroying it in the process with this method? any help is much appreciated...

  • @Lunkyboy
    @Lunkyboy 4 ปีที่แล้ว

    How can you set the jumpscare to come only once? because when you come back the jumpscare will come again

    • @JimmyVegasUnity
      @JimmyVegasUnity  4 ปีที่แล้ว

      disable the collider on the trigger when you enter it :)

    • @Lunkyboy
      @Lunkyboy 4 ปีที่แล้ว

      Thx,
      for people wondering what the script is: GetComponent().enabled = false;

  • @samuel-josephparry1366
    @samuel-josephparry1366 5 ปีที่แล้ว

    ive done everything right but for some reason the animation on my monster doesnt stop playing? like it doesnt transition out of the jumpscare lol

    • @hakuahkbk
      @hakuahkbk 4 ปีที่แล้ว

      yeah same :"( did you find the solution already?

  • @DarwentDesign
    @DarwentDesign 7 ปีที่แล้ว +3

    great tutorial but what the hell was that scream audio xD

    • @JimmyVegasUnity
      @JimmyVegasUnity  7 ปีที่แล้ว +1

      A sound clip I got from a commercial free site :)

    • @PandaTheGFX
      @PandaTheGFX 7 ปีที่แล้ว +2

      Pretty sure that was a dolphin

    • @DarwentDesign
      @DarwentDesign 7 ปีที่แล้ว +1

      XD

  • @gbpersonal4565
    @gbpersonal4565 3 ปีที่แล้ว

    Hey Jimmy great tutorial. Just wondering though, I probably wrote the script wrong but whenever I walk through the trigger it keeps on repeating over and over agian. Just a little confused hopefully someone can help me.

    • @JimmyVegasUnity
      @JimmyVegasUnity  3 ปีที่แล้ว +1

      seems like you missed the line where you disable the collider

    • @gbpersonal4565
      @gbpersonal4565 3 ปีที่แล้ว

      @@JimmyVegasUnity Where about is that located in the video? I have re-watched the whole thing and I can't seem to find that specific line. Could you maybe give me a time stamp? Thanks.

    • @JimmyVegasUnity
      @JimmyVegasUnity  3 ปีที่แล้ว

      my mistake, thought it was in there but this jumpscare was coded to play as many times as required. you’ll need to add in the line to set the collider as inactive

    • @gbpersonal4565
      @gbpersonal4565 3 ปีที่แล้ว

      @@JimmyVegasUnity Ok will do thanks for your help man!

    • @Vernasesi
      @Vernasesi 3 ปีที่แล้ว

      @@JimmyVegasUnity How can i make it inactive?

  • @itsdonix
    @itsdonix ปีที่แล้ว

    it says theres no audio listeners in the scene how to fix?

  • @TheGamingWiccan
    @TheGamingWiccan 5 ปีที่แล้ว

    how can i use this to trigger a jumpscare in a fixed location without having to set up a secondary camera?

  • @bricen6805
    @bricen6805 6 ปีที่แล้ว

    So in the actual game itself would I make the jumpscare in a different scene?

  • @emberrr44
    @emberrr44 7 ปีที่แล้ว

    Could you make it so wherever you come within a certain distance from the zombie the jumpscare activates ?

    • @Hello-rh4zw
      @Hello-rh4zw 3 ปีที่แล้ว +1

      Just put the cube in the zombie

  • @00martn
    @00martn 7 ปีที่แล้ว

    Can you make a mini tutorial about how to create a thunder particele system? I want to create a game with thunder in it.

    • @Vrasey
      @Vrasey 7 ปีที่แล้ว

      Creating thunder wouldn't be a particle system, it would be a sound. your idea could easily be achieved by using a simple rain particle system from the asset store, and then having your audio played at random.

  • @eshaanchaturvedi7344
    @eshaanchaturvedi7344 7 หลายเดือนก่อน

    How do u make 2 jumpscares in one scene

  • @JokerAlex
    @JokerAlex 5 ปีที่แล้ว

    when i play the game the jumpscare it's activate instantly without entering on trigger

    • @zeedtw
      @zeedtw 4 ปีที่แล้ว

      Turn off the Play automatically lol

  • @martinsinka248
    @martinsinka248 7 ปีที่แล้ว

    Hello I have a problem.... When I start the game its playing the flickering light animation. How i can fix this?

  • @hadinaboulsi9689
    @hadinaboulsi9689 7 ปีที่แล้ว

    hi jimmy I was wondering when is the next rpg episode

  • @Javawok
    @Javawok 7 ปีที่แล้ว +2

    As much as I need to make this kind of jump scare in my game I just cannot follow and understand scripting 🤦🏽‍♂️. I'm an absolute beginner at this. I can create a very basic level easy but scripting and my brain is like "nope you will not understand this"
    Can somebody make the scripts for me please . Setting the scene and creating empty objects and triggers seems simple enough so that's fine.

    • @Vrasey
      @Vrasey 7 ปีที่แล้ว +4

      It's up to you to write the scripts from the tutorial, and nobody understands it when they first start at it. But keep writing code, for a while it won't make sense but after you keep writing and writing it will all start to click

    • @DTCHmovieProduction
      @DTCHmovieProduction 6 ปีที่แล้ว

      practice at code academy :)

  • @TheBasementCade
    @TheBasementCade 5 ปีที่แล้ว

    but you can still moved when jumpscared

    • @JimmyVegasUnity
      @JimmyVegasUnity  5 ปีที่แล้ว

      Yep. And if you want to stop, then you just disable the controller and re-enable after it :)

  • @FilletDev
    @FilletDev 6 ปีที่แล้ว

    the script isnt working. its not letting me enter the image or audio file

  • @fatrickwashere3072
    @fatrickwashere3072 3 ปีที่แล้ว

    How can i trigger it for 1 time only?

    • @JimmyVegasUnity
      @JimmyVegasUnity  3 ปีที่แล้ว

      Turn the collider off as soon as you initiate the method

    • @fatrickwashere3072
      @fatrickwashere3072 3 ปีที่แล้ว

      @@JimmyVegasUnity Thank You it really helped a lot!

  • @Ghazerak
    @Ghazerak 7 ปีที่แล้ว

    Thank you very much, is it possible to do the same thing but with an animated blender video? Because I have a jumscare on blender but I do not know how imported as jumpscare, if not thank you many, + 1 sub and like :)

  • @justampeg4file
    @justampeg4file 3 ปีที่แล้ว

    You have sent a curse upon all lego games...

  • @dolarq7115
    @dolarq7115 2 ปีที่แล้ว

    Cool

  • @SaiKrishna8055
    @SaiKrishna8055 7 ปีที่แล้ว

    thanks jimmy
    could you make a tutorials on Horror game series

    • @JimmyVegasUnity
      @JimmyVegasUnity  7 ปีที่แล้ว +1

      +Sai Krishna I have a survival horror series coming soon

  • @semiuclips600
    @semiuclips600 4 ปีที่แล้ว

    Having issues with display 1 not rendering :/

    • @blackhax_edits1014
      @blackhax_edits1014 4 ปีที่แล้ว

      u dont have a fps controller or u dont have a camera

  • @andreasfrailich2612
    @andreasfrailich2612 7 ปีที่แล้ว

    IT SAIS NO CAMERAS RENDERING PLS HELP

  • @oshimationentertainment6340
    @oshimationentertainment6340 5 ปีที่แล้ว

    Thanx

  • @countotuscany7061
    @countotuscany7061 6 ปีที่แล้ว

    How come the sound plays when I start the game??

    • @micah2183
      @micah2183 6 ปีที่แล้ว +1

      Turn off "play on awake" on the audio source :)

  • @VIKTOR69
    @VIKTOR69 7 ปีที่แล้ว

    dont find walking animation

  • @Justin-oc3fi
    @Justin-oc3fi 3 ปีที่แล้ว +1

    I had a quick question. As soon as I start my game no matter where the player is, the jumpscare takes place. Im not too sure what I am doing wrong, I do have the Cube set for the trigger as well

  • @dmask8766
    @dmask8766 3 ปีที่แล้ว

    can i make this with godot

  • @Hunt3r741
    @Hunt3r741 7 ปีที่แล้ว +2

    12:20 there's a jumpscare lol

  • @zenii9136
    @zenii9136 2 ปีที่แล้ว

    i braised myself and still got scared

  • @speedofthephantom5620
    @speedofthephantom5620 7 ปีที่แล้ว

    Hello Jimmy Vegas! I am 12 years old and am very interested in game making. I would love to see a zombie survival tutorial :)
    I cannot create game very well as I know everything but coding. And my dream gave would be zombie survival where you have to eat food and stuff. Hope you reply!!! NOTICE MEEE

    • @JimmyVegasUnity
      @JimmyVegasUnity  7 ปีที่แล้ว

      I'm starting a survival horror series in a few weeks, so some elements of that series may prove useful for you :)

    • @existentialgames.
      @existentialgames. 7 ปีที่แล้ว

      SpeedOfThePhantom He also did a FPS game with similar stuff to it as well

    • @speedofthephantom5620
      @speedofthephantom5620 7 ปีที่แล้ว

      Jimmy Vegas thanks :)

    • @drb
      @drb 2 ปีที่แล้ว

      damn bro you 17 now?

    • @speedofthephantom5620
      @speedofthephantom5620 2 ปีที่แล้ว

      @@drb yeah lol forgot I even commented this

  • @thewanderingbard8455
    @thewanderingbard8455 7 ปีที่แล้ว

    Thank you for keeping the Slender rip-off train a-rolling xD

    • @JimmyVegasUnity
      @JimmyVegasUnity  7 ปีที่แล้ว

      +TheWanderingBard this may be controversial but i have never played it, havent even really looked at it

    • @thewanderingbard8455
      @thewanderingbard8455 7 ปีที่แล้ว

      I know, I was just kidding. Great tutorial BTW.

  • @yahirgarcia9397
    @yahirgarcia9397 7 ปีที่แล้ว

    This Is The Timer Version For Javascript users
    public var impact : AudioClip;
    var audioSource : AudioSource;
    var ThePlayer : GameObject;
    var JumpCam : GameObject;
    var FlashImg : GameObject;
    function Start(){
    JumpCam.SetActive(false);
    FlashImg.SetActive(false);
    ThePlayer.SetActive(true);
    yield WaitForSeconds(10.02);
    JumpCam.SetActive(true);
    FlashImg.SetActive(true);
    ThePlayer.SetActive(false);
    audioSource.PlayOneShot(impact,1.7F);
    yield WaitForSeconds(2.02);
    JumpCam.SetActive(false);
    FlashImg.SetActive(false);
    ThePlayer.SetActive(true);
    }

  • @doppiedops
    @doppiedops 7 ปีที่แล้ว +2

    Time to make a cringy five night's at freddy's copy

  • @drelectro1
    @drelectro1 2 ปีที่แล้ว +1

    No offence but the scream sounds like a young baby screaming.

    • @JimmyVegasUnity
      @JimmyVegasUnity  2 ปีที่แล้ว +1

      If you think it sounds like a baby, then may I suggest you take your baby to the doctors. Clearly something wrong buddy...

  • @lasseakihiro
    @lasseakihiro 7 ปีที่แล้ว

    First

  • @doziaress
    @doziaress 8 หลายเดือนก่อน +1

    nice but it is not ending the jumpscare.. anyone help?
    here is my code:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class JumpTriger : MonoBehaviour
    {
    public AudioSource Scream;
    public GameObject ThePlayer;
    public GameObject JumpCam;
    public GameObject FlashImg;
    public GameObject Monster;
    void OnTriggerEnter () {
    Scream.Play();
    JumpCam.SetActive(true);
    ThePlayer.SetActive(false);
    FlashImg.SetActive(true);
    Monster.SetActive(true);
    StartCoroutine(EndJump ());
    }
    IEnumerator EndJump() {
    yield return new WaitForSeconds (2.03f);
    JumpCam.SetActive(false);
    ThePlayer.SetActive(true);
    FlashImg.SetActive(false);
    Monster.SetActive(false);
    }
    }

    • @JimmyVegasUnity
      @JimmyVegasUnity  8 หลายเดือนก่อน

      there’s a space between EndJump and the parentheses in your OnTriggerEnter method. remove the space and it’ll work perfect 👍

    • @doziaress
      @doziaress 8 หลายเดือนก่อน

      @@JimmyVegasUnity in fact i think that i know the problem it was the wait method(ig) so i coded it in visual scripting and used a timer instead of a wait