Also something important is if you want to copy the door you need to remove the position property from the animation so that the animation happens on the place of the door and by the way awesome tutorial :D
For anyone wondering why it doesn't work to rotate the door along the empty object, when you select the game object, make sure to change the button in the top left corner from center to pivot
"wow that was really cool" -Dani (for real tho this helped me a lot, im not new to unity but I am horrible when it comes to animations lol. thank you for the quick and easy tutorial)
If anyone cannot get the door to open, all you have to do is go back to your "Interact" input in the Input Manager, go down to Type, change it to "Key or Mouse Button", and change the Axis option right below it to "X axis". I have been dealing with this issue for the past two hours, unable to get doors, flashlights, and anything using the input manager to work. Once I changed these settings (That were automatically applied by Unity (I redownloaded it six hours ago), everything worked!
Bro! It has an error saying that CS1061:'Animator' does not contain a defination for 'setBool' and no accessible extention method 'setBool' accepting a first argument of type 'Animator' could be found (are you missing a using directive or an assembly refference?)
@@user1productions883 btw i followed this video frame by frame and when i open the door it just closes by it's self after that, and the door sound plays in the beginning, i tried it all and it wouldn't work. any seg??
Yes this tutorial for the door was very buggy in different versions of unity, but I have an updated door tutorial, number 27 advanced doors. Please check that video out for a better system :)
There is a problem with my reach, when i press play its y and z values start changing drastically and makes interacting impossible EDIT: Ignore this I figured out how to fix it. In the rigidbody you must 0 all the values and forces
Hi there, great video! This playlist is awesome! One question: is there a particular reason why you use a cube as a reach tool instead of a raycast? Never seen this before.
hi i love your video! the way you give answers to pretty tough questions like how to open a door etc. for beginners is really amazing! one question though, who did you use a gameobject called reach instead of a raycast?
Hello, Loving the tutorials so far but I have a problem, when I interact on the door the sound is played but no animation, I have rewatched several times and cant see anything wrong with what Ive done. I see in the description about how to fix a possible error but am confused as to what the transition bool was. Thanks
Fixed... Delete both "open" & "closed" Bools... Create an "Open" Bool.. not "open" Apply "Open" = true ... to all Transitions.. From Idle to Open From Open to Closed From Closed to Open
Yes this old script was very buggy for many people, if you go on the channel to part number 27 on advanced doors it’s a better script and works perfectly
hello! i have a problem, my door can open, and then, nothing appened (I can t close it....) is somebody can help me? thanks (sorry if I made some spelling mistakes, I am french)
Cela ne fonctionne pas pour moi non plus mais d'après ce que j'ai compris, c'est un problème avec l'animateur. parce que pour moi le texte qui apparaît et que vous pouvez interagir mais l'animation ne commence pas. Je vais chercher une méthode pour réparer. De toute façon, avez-vous trouvé des remèdes ?
Hey User1, Thank you for the fantastic tutorial. However, one thing I have found that my character can walk through the door when it is closed, as I have edited the box collider to fit the handle.. Any advice on how I can prevent this and only allow for the player to move through once the door is open?
The ladder stopped working after I added the rigidbody component to the reach tool. Now it only works if I walk into it backwards. Anyone knows what's happening?
btw, if anyone has an issue where when you put the constraints on the rigidbody and the player movement is not working properly, instead of using rigidbody, just remove the box collider instead, its way easier and the problem should be fixed.
@@SubParGames_ Actually I could make it work only with rigid body and box collider components. I do understand the box collider with its isTrigger function, but why does rigidbody also plays a role here? My movement became somewhat broken after this.
Parameter 'closed' does not exit unityengine setbool (string , bool ) error how to fix this and my door opening but not closing how to fix this i am a beginner please help me
Hey there my friend, this is a bug that I didn’t realize till weeks after the upload. I just uploaded a new video called advanced door with more features and less bugs. Check out that video
You are awsome man one day you will reach than 1M subscribers Like brackeyes For Open Door I researched lot video but i am didn't satisfied after watching your video my door work because i don't no about new input system there no problem because after pressing door door is opening just not closing awesome man keep it up and i sub your channel after watch some videos all videos are awesome keep it up
Make sure it typed exactly how it is in the script. Capitalized and everything. This door tutorial fyi is out dated and I have a more up to date video on the channel. Part #27
Great Video thanks I made some adjustments, so that the door always opens in the direction the player is facing. This called for two more animations but it was worth it imo
@@fdemon8703 There is a Vector3 function called Dot which basically tells you if an object is in front or behind another object. I used the value from that function to determine if youre standing in front or behind the door and then played the corresponding animation
hello this is a great video i am using these in helping to make my first ever game i have an issue though i can't seem to get the door to remain open even after setting the idle animation for it i have rewatched it several time and don't know what is going on the door just keeps opening and then shutting as soon as it opens
hello! i've just gotten into ur tutorials and they have been super helpful for me. i have one question tho, i have already made the layout for my own horror game but do you know a place where i can get some textures? thanks 😊
hello, I created the interaction of doors and blinds according to your video and it doesn't work for me like you do, I don't know where the error is at all. when I start the play mode and start the animation at the door, the door opens and then automatically closes, of course I don't want that. I think we did everything the way you have, but I don't know. when starting the animation, an error (NullReferenceException) appears, I don't know what it means and I don't know what to do. I would be happy if someone would help me with my problem. Thank you and have a nice day.
Mine just rotates the wwhole door instead of where the hinge should be.. Is there a step I missed? I inserted the empty game object, but it doesn't do the same thing as in the video
Download from the google drive, and drag and drop into your assets… this system is out of date though so I suggest tutorial number 27, the advanced door system for a better working system
check to make sure you didn't add a duplicate audio source to the ground or some other random object, because i accidentally added one to the ground cube and it took me like 15 mins to figure it out lol
Change the objects pivot point and in the animator from the open and close animation make sure both of the transitions is open this is a mistake on my part
i have an major error all the steps i apply according to your video but when i play the game my house door is not open and in console the error of parameter "closed" does not exist appears plz reply me
Hey do you know how to make this work on mobile platform? i wanted to make it a button where the player is in range of the door, a button appears and open/close the door (I'm new to unity so I don't know how to make this work)
Hello Sir, Good day to you! My door interaction wont work and I have double checked across the video on what i missed. everything is in the exact way as the video, cant figure out what went wrong, any advise?
@@user1productions883 I see, Noted, i am using the latest version of Unity For 2022. Just afraid that your code is calling for text function whereby im using TMP as i dont have it for my UI. Thank you sir, will proceed with the video sequence then! You the best!
Hey ummm I’m having a bit of a problem. When I set the door as the child of the empty game object, the door still rotates normally from the middle even though I placed the game object on the right side. Could ya help fixing it? (And yes even when I rotate the game object it still rotates from the middle)
in the descritpion is a link to my google drive, this is where I put all assets (scripts, models, sound effect, etc) that I use in the tutorial videos for a free download for everyone. To either use as a prototype, template, or a finished product for there games. All assets have no copyrights on them and I allow everyone to use them for free!
Two things my friend, a lot of people found the script to be kind of buggy. So I made a more up-to-date video on how to do doors. That video would be number 27 on the RUclips channel. Second of all the sound is playing as soon as you start the game because in the audio source you have play on wake enabled. Meaning the sound effects will play as soon as the game play. So all you have to do is deactivate play on wake in the audio source component
@@user1productions883 Thanks buddy, you are doing a lot of good work. I am hoping publish my horror game with help of your tutorials with unique story.
Yes! This was a glitch that occurred with a lot of people because of the newer version of unity. I upload a video a I believe part 27 for an advanced door system and it works much better
Appreciate the support my friend. Make sure it’s just like the script, you should see a line saying “setbool”closed”true. Be sure your parameter in the animator is typed just like the quotes in that script
Hello! Idk if u still asnwer but i got a small issue. Im sure i did everything as u did but the problem is, that i cant open the door, when im pressing E. Idk what the reason was but there is no error in the console. If you could help me out a bit it would be amazing ^^
This system was very buggy for many people, I’d like to direct your attention to the advanced door system I’ve made. It’s part 27 on the channel and way better with less bugs
You should have 3 animations, idle, open, closed. Then from idle to open, have a transition with a bool attached for open, then from open to closed, and closed to open add another transition to each with the open bool
If you go to edit, user preferences, input settings, you have to add a new input which I just called interact for all my Scripps. And then inside of there it’s going to ask what the positive button is you can change that to any button on the keyboard
I did make a slight error inside unity myself and I didn’t realize until uploading. After you’ve done everything and created the animator tree, the transitions from the open and closed animation should both be open
@@user1productions883 I left you some suggestions for future videos in the ladder tutorial so pls consider doing some of those cuz i kinda want those things in the game im making.
@@user1productions883 bro this comment help me a lot 😭 😭😭..I cried after getting it..I followed your video but shows error in parameters..I checked your video for 3 days and after reading this comment... 😭😭😭
This was a very buggy system and didnt seem to age will with newer versions of unity, please check out tutorial number 27 the advanced door systems for a more in depth and less buggy system
Awesome tutorial! I've gotten everything to work except for one error message I'm getting back: "Parameter "Closed" does not exist". I've set up both the open and closed parameters though. Any idea what might be happening? Thanks!
@Unusual GameDev @12:19 The Condition of the Transition (on the Animator window) should be set to Open = True. Instead of having closed = True. Also note that the Parameters on the Animator window should be Open and Closed (capital first letter) instead of open and closed. Hope this helps.
for some reason my reach cube just doesnt want to cooperate, unfortunately this could be due to a number of reasons but I dont know why it keeps having several problems, for starters it only moves to the left and to the right but not up and down idk why and sometimes it just completely detaches from the playercontroller which is v weird considering it is a child of the user OBJ
Yes you need it part of your camera, not the player. Something else if this door system proves to be buggy for you check out the updated tutorial number 27 on the channel
Yes you do have to change to pivot point but also This system was very buggy for many people, I’d like to direct your attention to the advanced door system I’ve made. It’s part 27 on the channel and way better with less bugs
@@ramelsteel3782 I didn’t realize there is a time but this code in system is kind of buggy sometimes. I just released a new video on the channel for advance stores that includes more features and a smoother workflow, I highly advise going to watch that one
Thanks for the tutorials you are great , i had a problem for some reason with this script , even tho i added the idle state of the door it kept getting closed after i opened it so i changed the script in the if statement to : void Update() { if (inReach && Input.GetButtonDown("Interact") && door.GetBool("Closed") && door.GetBool("Idle")) { DoorOpens(); } else if (inReach && Input.GetButtonDown("Interact") && door.GetBool("Open")) { DoorCloses(); } I added a bool named "Idle" and the checked the idle and closed bools so it startes like this and seems to be working fine , i hope i helped someone with this
the problem is with his video tutorials he a cuts a important part of the video and then it leaves people clueless like how did he do that. like i watch this video 100 times to see what I did wrong but the code never worked because he skipped a very important part of the video
Also something important is if you want to copy the door you need to remove the position property from the animation so that the animation happens on the place of the door and by the way awesome tutorial :D
This is factual ! Should have mentioned this
Please elaborate. I like to have multiple doors in my environment.
Should i declare a delegate?
You know, as someone with ADHD, the way you explain the physicality of what you actually have to do, press on screen etc really helps
great guide
For anyone wondering why it doesn't work to rotate the door along the empty object, when you select the game object, make sure to change the button in the top left corner from center to pivot
There is a more up to date tutorial on the channel in part number 27, the advanced door system
@@user1productions883 I know, but I just wanted clarify, because I got this error as well and I wanted to show my solution
omg legend bro i was stuck on this tutorial for hours doing it over and over again
thank you so much!
thank you, you you are a good man/women/other/penguin kutgw 😁
I know this is old, but man it’s a lifesaver. Thank you so much.
What version of unity you have?
"wow that was really cool" -Dani
(for real tho this helped me a lot, im not new to unity but I am horrible when it comes to animations lol. thank you for the quick and easy tutorial)
Hahaha I love the Dani reference! And thank you my friend I’m glad you enjoyed ! I really appreciate the support
If anyone cannot get the door to open, all you have to do is go back to your "Interact" input in the Input Manager, go down to Type, change it to "Key or Mouse Button", and change the Axis option right below it to "X axis".
I have been dealing with this issue for the past two hours, unable to get doors, flashlights, and anything using the input manager to work. Once I changed these settings (That were automatically applied by Unity (I redownloaded it six hours ago), everything worked!
I have done both of those but still, my open animation won’t work and the door itself won’t even open :( if anyone else can please help lmk 🙏
@@omarelgendy516did you found a fix?
The sound also plays in the beggining, how could i change this?
Bro! It has an error saying that CS1061:'Animator' does not contain a defination for 'setBool' and no accessible extention method 'setBool' accepting a first argument of type 'Animator' could be found (are you missing a using directive or an assembly refference?)
one of the most amazing channels out there. please make more
Got so much more planned, thank you for all the support
@@user1productions883 btw i followed this video frame by frame and when i open the door it just closes by it's self after that, and the door sound plays in the beginning, i tried it all and it wouldn't work. any seg??
Yes this tutorial for the door was very buggy in different versions of unity, but I have an updated door tutorial, number 27 advanced doors. Please check that video out for a better system :)
There is a problem with my reach, when i press play its y and z values start changing drastically and makes interacting impossible
EDIT: Ignore this I figured out how to fix it. In the rigidbody you must 0 all the values and forces
when i start the game the door audio starts playing until the audio is over how do i end it
Hi there, great video! This playlist is awesome!
One question: is there a particular reason why you use a cube as a reach tool instead of a raycast? Never seen this before.
Thank you for the support my friend, and the reach tool in my opinion is Easier to code and manipulate for beginners.
hi i love your video! the way you give answers to pretty tough questions like how to open a door etc. for beginners is really amazing! one question though,
who did you use a gameobject called reach instead of a raycast?
Hello, Loving the tutorials so far but I have a problem, when I interact on the door the sound is played but no animation, I have rewatched several times and cant see anything wrong with what Ive done.
I see in the description about how to fix a possible error but am confused as to what the transition bool was. Thanks
Fixed...
Delete both "open" & "closed" Bools...
Create an "Open" Bool.. not "open"
Apply "Open" = true ... to all Transitions..
From Idle to Open
From Open to Closed
From Closed to Open
@@synju i didnt get that
@@synju It works! Thank you very much
@@synju yo thanks so much i was trying to fix it all night yesterday
@@synju Thank you so much
the door spams it closes message, it seems that it's always closed, can you help me plz?
Yes this old script was very buggy for many people, if you go on the channel to part number 27 on advanced doors it’s a better script and works perfectly
I made idle animation, and set up all like I should, but my doors still instantly closes. Pls Help (i have no errors)
me too
hello!
i have a problem, my door can open, and then, nothing appened (I can t close it....)
is somebody can help me?
thanks
(sorry if I made some spelling mistakes, I am french)
Cela ne fonctionne pas pour moi non plus mais d'après ce que j'ai compris, c'est un problème avec l'animateur. parce que pour moi le texte qui apparaît et que vous pouvez interagir mais l'animation ne commence pas. Je vais chercher une méthode pour réparer. De toute façon, avez-vous trouvé des remèdes ?
Hey User1, Thank you for the fantastic tutorial.
However, one thing I have found that my character can walk through the door when it is closed, as I have edited the box collider to fit the handle.. Any advice on how I can prevent this and only allow for the player to move through once the door is open?
I'm not that good with unity, but maybe try setting up another boxcollider
add a mesh collider
Hello, is it possible to make the same interaction system but for the mobile platform?
For some reason the door does not rotate with the empty child object but just rotates like normal if it didnt have a parent empty game object
The ladder stopped working after I added the rigidbody component to the reach tool. Now it only works if I walk into it backwards. Anyone knows what's happening?
Is it possible that you added the Reach tool to the wrong side of the Player Character?
There is a problem with my reach, when i press play it will move side to side, but not up and down!
I did all the things correctly but the door still stays shut :( It does not even display open/close text[Interact part done]
This script was very buggy, but if you go onto the channel I have an updated video called advanced doors, fixing most of the problems :)
@@user1productions883 It worked. FINALLY!!!
btw, if anyone has an issue where when you put the constraints on the rigidbody and the player movement is not working properly, instead of using rigidbody, just remove the box collider instead, its way easier and the problem should be fixed.
man you saved my life, I was struggling with it for some time now
@@hangyboi no problem!
@@SubParGames_ Actually I could make it work only with rigid body and box collider components. I do understand the box collider with its isTrigger function, but why does rigidbody also plays a role here? My movement became somewhat broken after this.
Parameter 'closed' does not exit unityengine setbool (string , bool ) error how to fix this and my door opening but not closing how to fix this i am a beginner please help me
Hey there my friend, this is a bug that I didn’t realize till weeks after the upload. I just uploaded a new video called advanced door with more features and less bugs. Check out that video
You are awsome man one day you will reach than 1M subscribers Like brackeyes For Open Door I researched lot video but i am didn't satisfied after watching your video my door work because i don't no about new input system there no problem because after pressing door door is opening just not closing awesome man keep it up and i sub your channel after watch some videos all videos are awesome keep it up
When I add the interact on the project setting and run the game it doesn't work
Make sure it typed exactly how it is in the script. Capitalized and everything. This door tutorial fyi is out dated and I have a more up to date video on the channel. Part #27
@@user1productions883 okey. Thanks
Great Video thanks
I made some adjustments, so that the door always opens in the direction the player is facing. This called for two more animations but it was worth it imo
how did you make this?
@@fdemon8703 There is a Vector3 function called Dot which basically tells you if an object is in front or behind another object. I used the value from that function to determine if youre standing in front or behind the door and then played the corresponding animation
hello this is a great video i am using these in helping to make my first ever game i have an issue though i can't seem to get the door to remain open even after setting the idle animation for it i have rewatched it several time and don't know what is going on the door just keeps opening and then shutting as soon as it opens
This was a very buggy script for later versions of unity, please check out part 27 on my channel for a more up to date video
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
public class Doors : MonoBehaviour
{
public Animator door;
public GameObject openText;
public AudioSource doorSound;
private bool inReach;
private PlayerInputActions playerInputActions;
void Awake()
{
playerInputActions = new PlayerInputActions();
}
void OnEnable()
{
playerInputActions.Player.Interact.performed += OnInteract;
playerInputActions.Player.Enable();
}
void OnDisable()
{
playerInputActions.Player.Interact.performed -= OnInteract;
playerInputActions.Player.Disable();
}
void Start()
{
inReach = false;
DoorCloses();
if (openText != null)
{
openText.SetActive(false);
}
}
void OnTriggerEnter(Collider other)
{
if (other.CompareTag("reach"))
{
inReach = true;
if (openText != null)
{
openText.SetActive(true);
}
}
}
void OnTriggerExit(Collider other)
{
if (other.CompareTag("reach"))
{
inReach = false;
if (openText != null)
{
openText.SetActive(false);
}
}
}
void OnInteract(InputAction.CallbackContext context)
{
if (inReach)
{
if (door.GetBool("Open"))
{
DoorCloses();
}
else
{
DoorOpens();
}
}
}
void DoorOpens()
{
door.SetBool("Open", true);
door.SetBool("Closed", false);
doorSound.Play();
}
void DoorCloses()
{
door.SetBool("Open", false);
door.SetBool("Closed", true);
doorSound.Play();
}
}
this should work!
hello! i've just gotten into ur tutorials and they have been super helpful for me. i have one question tho, i have already made the layout for my own horror game but do you know a place where i can get some textures? thanks 😊
really appreciate the support! i always have used freestocktextures (dot) com
@@user1productions883 your welcome! and i'll check it out, thanks a lot!
Note: if using newer version of unity you need to set input handling mode to both in project settings to avoid errors
Is there a way to avoid the reach tool going through walls?
Through code yes
Is Reach tool method better than Raycast??
No but it is much easier to understand and code for beginners :)
Hello, I have a few problems, my door disappears when I start the animation. Can anyone help me? please
i have the same problem and i dont know why its happening
I have an issue, the door opening sound plays when i press start, any solutions?
good, what is the name of the application with which you open the scripts/where you see the codes
There’s a few scripting applications you can use, but the most popular one for unity is : visual studios
hello, I created the interaction of doors and blinds according to your video and it doesn't work for me like you do, I don't know where the error is at all. when I start the play mode and start the animation at the door, the door opens and then automatically closes, of course I don't want that. I think we did everything the way you have, but I don't know. when starting the animation, an error (NullReferenceException) appears, I don't know what it means and I don't know what to do. I would be happy if someone would help me with my problem. Thank you and have a nice day.
This was a very buggy system so I made an update to this video called advanced door system, it’s part number 27 in the series
Mine just rotates the wwhole door instead of where the hinge should be.. Is there a step I missed? I inserted the empty game object, but it doesn't do the same thing as in the video
Yes, change the pivot point of the object, also do the tutorial from part 27 it’s more up to date
how do you drag the door script into unity? please
Download from the google drive, and drag and drop into your assets… this system is out of date though so I suggest tutorial number 27, the advanced door system for a better working system
@@user1productions883 thansk baby great tutorial
For me theres only Text - Textmeshpro but not Text. Can I you the Textmeshpro too?
Got it. Had to use Legacy tab
Hi, when I make the empty object part of the door it changes position to the centre of the door instead of the side (like a hinge).
The door sound still plays when I click play? (play on awake is off and have the sound put in as my source)
in the audosource turn off play on wake
@@user1productions883 did you see my edit, I said that my play on wake is already off and it still does it
check to make sure you didn't add a duplicate audio source to the ground or some other random object, because i accidentally added one to the ground cube and it took me like 15 mins to figure it out lol
The doors not working right so when i try to open it in the edititor it turns both ways and the empty game object goes to the centre of the door?
Change the objects pivot point and in the animator from the open and close animation make sure both of the transitions is open this is a mistake on my part
Thanks!
i have an major error all the steps i apply according to your video but when i play the game my house door is not open and in console the error of parameter "closed" does not exist appears plz reply me
This was a very buggy system with later versions of unity, I have a more up to date video on my channel. It’s part 27
When i add the door object to the empty. It not change the pivot.
Hi i make the idle already but the door also open and close automatic how can i fix it
My reach tool hasn't opened the door whatever i try
My door opens and closes once but won't open again. Any ideas how to fix it?
When i drag the door object into the GameObject it is like the game object becomes that door object and it rotates like a normal wall not like a door
The empty ganeobject make sure u place the transform where the hinge of the door will go
I placed it right where you did, then when I put the Door to the GameObject, the game object teleports to the Door's object center and becomes it.
@@gamesnocommentarry7278 change the way you select the object from global to local. Should be a button on the top left near your transform tools
@@user1productions883 Thanks. Also i want to thank you for your toturials, you're great at these 👍😉
@@gamesnocommentarry7278 really appreciate it my friend
i dont can drag in drop the door in the script like 7:50
Hey do you know how to make this work on mobile platform? i wanted to make it a button where the player is in range of the door, a button appears and open/close the door (I'm new to unity so I don't know how to make this work)
The door doesn't open when I am pressing E at it and the text doesn't appear, how do I fix that?
Hello Sir, Good day to you! My door interaction wont work and I have double checked across the video on what i missed. everything is in the exact way as the video, cant figure out what went wrong, any advise?
Yes this system was very buggy in newer versions of unity, I have a more up to date video on the channel, part 27
@@user1productions883 I see, Noted, i am using the latest version of Unity For 2022. Just afraid that your code is calling for text function whereby im using TMP as i dont have it for my UI. Thank you sir, will proceed with the video sequence then! You the best!
@@user1productions883 i use 2017 and it wont open
Hey ummm I’m having a bit of a problem. When I set the door as the child of the empty game object, the door still rotates normally from the middle even though I placed the game object on the right side. Could ya help fixing it? (And yes even when I rotate the game object it still rotates from the middle)
this was a bug that happened to many people, i have a new upload ( part 27 i think) its a brand new door system that works flawlessly
@@user1productions883 Ok! Thank you!
why the door still open and close automatically?
this was a mistake on my part. the transition from the open and closed aniamtion should both be the open bool. and this will fix it
@@user1productions883 Oh i see, is true all or false and true
does this work with multiple doors?
i didn't understand whats in description
in the descritpion is a link to my google drive, this is where I put all assets (scripts, models, sound effect, etc) that I use in the tutorial videos for a free download for everyone. To either use as a prototype, template, or a finished product for there games. All assets have no copyrights on them and I allow everyone to use them for free!
@@user1productions883 what do you mean by YES I messed up sorry. change the transition bools to open on both and it will work !! ?
hello. The door doesnt work when i press e.
but the sound play.
what do i do with this door to rotate
Yes this system was very buggy for many people, please check video number 27, advanced doors for a better system
@@user1productions883 TYVM
why do i get door sound at start of the game
Two things my friend, a lot of people found the script to be kind of buggy. So I made a more up-to-date video on how to do doors. That video would be number 27 on the RUclips channel. Second of all the sound is playing as soon as you start the game because in the audio source you have play on wake enabled. Meaning the sound effects will play as soon as the game play. So all you have to do is deactivate play on wake in the audio source component
@@user1productions883 Thanks buddy, you are doing a lot of good work. I am hoping publish my horror game with help of your tutorials with unique story.
Hello i relly like your video
But my door keeps closing every time i open it
Whats the problem
I will die trying
Older versions of unity worked better with this system, check out tutorial number 27, the advanced door system. Much better system with less bugs
when i press e the door opens when i want to press e to close it will just open again can u help me with this because i need it for a project
Yes! This was a glitch that occurred with a lot of people because of the newer version of unity. I upload a video a I believe part 27 for an advanced door system and it works much better
@@user1productions883 I fixed it thanks u just have to set all the transitions to open
@@user1productions883 i was wondering can u make a jumpscare video tutorial?
y cant my cube go down or up it can only go sideways
Bro, when I press e, only makes the sound of the door, the door not's open and not's closes, someone please can help me?
for me only the idle animation did't work i did everything as the video shows but no success :(
Doesn't work. I did everything same like you and door still closes fast after pressing E, Idle Animation I did.
ty so much for putting the code in google drive
i would have to type all of that otherwise
I followed that all, but there is still message "Parameter 'Closed' does not exist." please help me...
and thanks for the nice tutorial
Appreciate the support my friend. Make sure it’s just like the script, you should see a line saying “setbool”closed”true. Be sure your parameter in the animator is typed just like the quotes in that script
@@user1productions883 You were right. Thanks for helping me
@@전창우-o6d awesome, no problem that was a mistake on my end
im confused on what that means
Getting some problems of sounds played when I start and don't play when I open or close the door...plz help 😭😭
this was a bug that happened to many people, i have a new upload ( part 27 i think) its a brand new door system that works flawlessly
Hello! Idk if u still asnwer but i got a small issue. Im sure i did everything as u did but the problem is, that i cant open the door, when im pressing E. Idk what the reason was but there is no error in the console. If you could help me out a bit it would be amazing ^^
Did you set up the interest button in player settings ? The input manager ?
@@user1productions883 u mean that interaction thingie? Yes i did
@@Mo-velocity Found out wat is was ?
how do I change the transition bools to open on both
I want to know what you named this unity horror game
I’m making a game from these tutorial videos, it’s going to be called Operation Horror. I think, names are definitely difficult
where is code
Doors
Why isnt the door opening for I followed everything you did
Outdated system my friend, please check out tutorial number 27 for an advanced and better door system
@@user1productions883 thank u
uhhh my door won`t stay opened. what i can do?
This system was very buggy for many people, I’d like to direct your attention to the advanced door system I’ve made. It’s part 27 on the channel and way better with less bugs
@@user1productions883thx man. Glory to Ukraine
I have a HUGE problem the idle animation doesn’t work it still just opens and shuts by itself I have tried everything but nothing works
You should have 3 animations, idle, open, closed. Then from idle to open, have a transition with a bool attached for open, then from open to closed, and closed to open add another transition to each with the open bool
@@user1productions883 I fixed it
@@cookiebot. i have same problem how you fixed it?
@@user1productions883 i think you didn't mention that on the video ? or you did?
@@brahim22526 i went over it but i put the wrong bools in. i mentioned the mistake in the description of the video. this was a mistake on my part
How do i change the Interact?
If you go to edit, user preferences, input settings, you have to add a new input which I just called interact for all my Scripps. And then inside of there it’s going to ask what the positive button is you can change that to any button on the keyboard
@@user1productions883 edit on the topbar of unity ?
@@user1productions883 user preferences isn't there and idk what i would put for E ? would i just put "e"
@@xezienstudios edit - user preferences - inut - add imputs - then call it Interact and positive button is e
@@user1productions883 Do you mean Project Settuhgs -> input manager
Well can you do a update video of this so i can copy n paste the door somewhere else
I have error parameter 'Open' does not exist and parameter 'Closed' does not exist. Can anyone help?
yes, this was a very buggy script and system for new versions of unity. please chekc out the advanced doors tutorial number 27 for a better system
so when i open the door, it does open but then it instantly closes. I was hoping you could help me. Other than that, this is a great tutorial!
This tutorial is out of date, please check the channel for advanced doors, tutorial number 27
Works just fine. I had some issues cuz I'm an idiot but I made it work. lol
I did make a slight error inside unity myself and I didn’t realize until uploading. After you’ve done everything and created the animator tree, the transitions from the open and closed animation should both be open
@@user1productions883 I left you some suggestions for future videos in the ladder tutorial so pls consider doing some of those cuz i kinda want those things in the game im making.
I saw them my friend! Most of those suggestions you commented I’ve already planned on doing for future videos! Stayed tuned my friend
@@user1productions883 Perfect thank you.
@@user1productions883 bro this comment help me a lot 😭 😭😭..I cried after getting it..I followed your video but shows error in parameters..I checked your video for 3 days and after reading this comment... 😭😭😭
Did he make a vid on how to upload the horror monsters
Hi bro, thank you for the tutorial
Can you give me the complete source link so I can download it?
for me the cube is just staying still it moves with mke but not up and down
This was a very buggy system and didnt seem to age will with newer versions of unity, please check out tutorial number 27 the advanced door systems for a more in depth and less buggy system
Awesome tutorial! I've gotten everything to work except for one error message I'm getting back: "Parameter "Closed" does not exist". I've set up both the open and closed parameters though. Any idea what might be happening?
Thanks!
do you have it as closed or Closed? He did closed with a lowercase c but you need to do it with uppercase! Sry for late response!
any parameters such as that will be case sensitive! try to keep that in mind as that's a mistake you will make 1000 times
i dont understand this?
the transitions from the open and closed animation should both be open
i cant fix it
@User1 Productions can you help?
Yes that was my fault
@Unusual GameDev @12:19 The Condition of the Transition (on the Animator window) should be set to Open = True. Instead of having closed = True. Also note that the Parameters on the Animator window should be Open and Closed (capital first letter) instead of open and closed. Hope this helps.
@@unclesocks546 It still stays shut even though no errors are thrown in console
for some reason my reach cube just doesnt want to cooperate, unfortunately this could be due to a number of reasons but I dont know why it keeps having several problems, for starters it only moves to the left and to the right but not up and down idk why and sometimes it just completely detaches from the playercontroller which is v weird considering it is a child of the user OBJ
Literally realized my mistake while typing this out I had made it a child of the User not the FPSCharacter, hope this may help someone
Yes you need it part of your camera, not the player. Something else if this door system proves to be buggy for you check out the updated tutorial number 27 on the channel
@@user1productions883 I just reached that episode right now, but thanks alot!
Not working can you help me please
I did everything but the door won't open
One problem I have is that nothing shows up and I can't Interact with the door?
The animation doesnt work either
the door rotates from the middle
You have to set ''Tool handle position'' (it's under scene button) to ''Pivot'' instead of ''Center'' on GameObject
Yes you do have to change to pivot point but also This system was very buggy for many people, I’d like to direct your attention to the advanced door system I’ve made. It’s part 27 on the channel and way better with less bugs
Great video Thank you :D
i can not add door to the door animator what can i do for this
my unity ver is 2020.3
@@ramelsteel3782 I didn’t realize there is a time but this code in system is kind of buggy sometimes. I just released a new video on the channel for advance stores that includes more features and a smoother workflow, I highly advise going to watch that one
@@user1productions883 okay my friend i will check it
doesnt work , the moment you parent the door to empty game object the pivot point becomes the same as the door
Select the hinge, now in your scene preview window top-left there is a box set to center, set it to pivot.
door never opens only plays sound and shows text
nice work
Thanks for the tutorials you are great , i had a problem for some reason with this script , even tho i added the idle state of the door it kept getting closed after i opened it so i changed the script in the if statement to :
void Update()
{
if (inReach && Input.GetButtonDown("Interact") && door.GetBool("Closed") && door.GetBool("Idle"))
{
DoorOpens();
}
else if (inReach && Input.GetButtonDown("Interact") && door.GetBool("Open"))
{
DoorCloses();
}
I added a bool named "Idle" and the checked the idle and closed bools so it startes like this and seems to be working fine , i hope i helped someone with this
can u pls explain what u did after adding the bool idle as i could not get that part
why my doors cant close
👏👏👏👏👏👏👏
the problem is with his video tutorials he a cuts a important part of the video and then it leaves people clueless like how did he do that. like i watch this video 100 times to see what I did wrong but the code never worked because he skipped a very important part of the video
I need hiding spot bro
Gonna be going over hiding spots very soon my friend
thank u ♥