THANKS so much for this tutorial, it's the first one involving coding that actually worked in my project. Your are a lifesaver!
@soybean942 жыл бұрын
Love the way you clearly explain your thinking process for writing the code, appreciate it!
@Duke_L00000 Жыл бұрын
thx man u're the best
@mykschi36752 жыл бұрын
This tutorial is amazing and you are really good at teaching !! great job sir !
@immen_2 жыл бұрын
Well explained and extremly useful. Nice one.
@elevengamedev2 жыл бұрын
It really works, thank you.
@slacha46472 жыл бұрын
Thanks , you really helped me, and how to create a auto moving enemy
@yousifky Жыл бұрын
😍😍😍😍😍😍 You are the best
@bilalahmadkhan94962 жыл бұрын
3 times did not start, but then it worked
@kurta.niones13382 жыл бұрын
Very good release, crack work, without problems
@madpingui50072 жыл бұрын
I think the code could be greatly simplified if delegates were used. you simply have two events for the switches and the gate subscribes to them (in case you want 2 switches). if not with a single switch it would be enough to do both functions of opening and closing. Eitherway great explanation and quite detailed, keep it up! 💪
@Dani_Krossing2 жыл бұрын
Yes that would also be a way to do it. 🙂 So instead of having the scripts talk to one another directly, we could just subscribe the methods to a “open” and “close” event. And simply call those two. The problem however is when you start having 6 sets of doors with switches, since calling the event would trigger all the subscriptions. Or am I missing something? 🙂
@madpingui50072 жыл бұрын
@@Dani_Krossing yeah you are right, but all depends on the kind of game we are developing, if you only have few doors per level for example then it wouldnt matter, also with this method you would have to set manually all doors and that could lead to null references later. Both are good aproaches it just depends on what are we aiming for.
@Dani_Krossing2 жыл бұрын
@@madpingui5007 My wife just told me the same thing as you hehe. Funny coincidence. 😅 And yes you are absolutely right. 🙂
@eriksebz84662 ай бұрын
Hmm, I've watched this video several times in a row now. It seems my code is the same as yours but I can only use the button to close the door and only if the ''Is Door Open" button is klicked in on the door script. How come it doesn't work otherwise?
@trifyy2 жыл бұрын
hey, i don't really know if you ever read this but i'd like to know since i watched your php tutorials if there is some way you could exclude specific names from registration except registering them
@nitrons_2 жыл бұрын
Is there a way to make this work horizontally? I've tried but it hasn't worked
@GarrudaDraconix2 Жыл бұрын
In 3d it does nothing when i a go on the button but i have no code errors? The door really opens itself when i tick the open at start button though...
@PINSGAMEPLAY2 жыл бұрын
Take a drink every ti he says “to stay super organized “
@AleksPanable Жыл бұрын
code PlayerController doesn't work
@milosmilosevic71352 жыл бұрын
Could we just use animation inside unity engine for door up and down ,and play that animation whan player enters a trigger or colide whatever ?i think that would be much easyer?btw nice video keep it up!
@Dani_Krossing2 жыл бұрын
Yes that is also a valid way of doing it. 🙂 There are always multiple solutions to the same issue, and it’s just about which is more appropriate to the situation.
@AnaBolumar2 жыл бұрын
+sub
@VojtaGaming2511 ай бұрын
it doesent work i have just like the tutorial but it the button just doesent move
@VojtaGaming2511 ай бұрын
Neverm mind i just figured out i had a empty gameobject as the object that holds the switch behaviour i just put it on my switch head the red thignie and now it works thanks
@Stoney_Eagle2 жыл бұрын
But what's behind the door, do you have the nerves to find out? 😨🚪👻