HOW TO MAKE DOOR OPEN AND CLOSE IN UNITY 🎮 | Open Doors 2D and 3D Tutorial | Learn Unity

  Рет қаралды 10,003

Dani Krossing

Dani Krossing

Күн бұрын

Пікірлер
@JV-cz7db
@JV-cz7db Жыл бұрын
THANKS so much for this tutorial, it's the first one involving coding that actually worked in my project. Your are a lifesaver!
@soybean94
@soybean94 2 жыл бұрын
Love the way you clearly explain your thinking process for writing the code, appreciate it!
@Duke_L00000
@Duke_L00000 Жыл бұрын
thx man u're the best
@mykschi3675
@mykschi3675 2 жыл бұрын
This tutorial is amazing and you are really good at teaching !! great job sir !
@immen_
@immen_ 2 жыл бұрын
Well explained and extremly useful. Nice one.
@elevengamedev
@elevengamedev 2 жыл бұрын
It really works, thank you.
@slacha4647
@slacha4647 2 жыл бұрын
Thanks , you really helped me, and how to create a auto moving enemy
@yousifky
@yousifky Жыл бұрын
😍😍😍😍😍😍 You are the best
@bilalahmadkhan9496
@bilalahmadkhan9496 2 жыл бұрын
3 times did not start, but then it worked
@kurta.niones1338
@kurta.niones1338 2 жыл бұрын
Very good release, crack work, without problems
@madpingui5007
@madpingui5007 2 жыл бұрын
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_Krossing
@Dani_Krossing 2 жыл бұрын
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? 🙂
@madpingui5007
@madpingui5007 2 жыл бұрын
@@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_Krossing
@Dani_Krossing 2 жыл бұрын
@@madpingui5007 My wife just told me the same thing as you hehe. Funny coincidence. 😅 And yes you are absolutely right. 🙂
@eriksebz8466
@eriksebz8466 2 ай бұрын
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?
@trifyy
@trifyy 2 жыл бұрын
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_
@nitrons_ 2 жыл бұрын
Is there a way to make this work horizontally? I've tried but it hasn't worked
@GarrudaDraconix2
@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...
@PINSGAMEPLAY
@PINSGAMEPLAY 2 жыл бұрын
Take a drink every ti he says “to stay super organized “
@AleksPanable
@AleksPanable Жыл бұрын
code PlayerController doesn't work
@milosmilosevic7135
@milosmilosevic7135 2 жыл бұрын
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_Krossing
@Dani_Krossing 2 жыл бұрын
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.
@AnaBolumar
@AnaBolumar 2 жыл бұрын
+sub
@VojtaGaming25
@VojtaGaming25 11 ай бұрын
it doesent work i have just like the tutorial but it the button just doesent move
@VojtaGaming25
@VojtaGaming25 11 ай бұрын
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_Eagle
@Stoney_Eagle 2 жыл бұрын
But what's behind the door, do you have the nerves to find out? 😨🚪👻
@favour5442
@favour5442 2 жыл бұрын
First to comment ✌️✌️✌️
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 39 МЛН
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 45 МЛН
Key and Door System | Multiple keys and doors Unity Tutorial
15:19
MoreBBlakeyyy
Рет қаралды 5 М.
5 Tips for Great Level Design
12:34
Apox Fox
Рет қаралды 55 М.
Handle Scene Transitions, Doors and Persistence like a Commercial Game
24:06
Sasquatch B Studios
Рет қаралды 10 М.
How I learned Unity without following tutorials (Developing 1)
18:11
Game Maker's Toolkit
Рет қаралды 2 МЛН
3 Ways to Open Doors in Unity!
20:55
Code Monkey
Рет қаралды 41 М.
How To Open Doors Easily in Unity With Trigger Events
6:52
Fist Full of Shrimp
Рет қаралды 3,6 М.
How To Make A HORROR Game In Unity | Doors | Horror Series Part 003
17:26
User1 Productions
Рет қаралды 57 М.
OPENING a DOOR in UNITY with a RAYCAST
18:18
SpeedTutor
Рет қаралды 54 М.
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 39 МЛН