How To Make A Key and Door System in Unreal Engine 5

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 33

  • @VirtusEdu
    @VirtusEdu  Рік тому +4

    Hey everyone, learn how to build a key and door system in Unreal Engine using blueprints.
    Let us know what game mechanic you'd like to see us recreate next!

    • @francislugo6749
      @francislugo6749 Рік тому

      Hi, I hope you doing well. I would like to see color matching minigame. I have dynamic color material that uses a track and cannot create a mechanic to match it with a character of specific color.

    • @Dan-codes
      @Dan-codes 2 місяці тому

      Please show multiplayer with different levels, where players can load into different levels in the same game, please.

  • @hiagooliveira6510
    @hiagooliveira6510 Рік тому +5

    Hi Luke, thanks for the tutorial!
    As a challenge to myself I tried implementing this from scratch before watching your video and then comparing the results.
    I'm happy that I did it almost the same way you did!
    One little difference was that instead of keeping track in a variable of whether or not the character has the key, I decided to use actor tags. So on the key overlap event I add tag of "KeyForDoor1" to the interacting actor for example, and on the door I check if the actor has that tag on him. If true I open the door and remove the key. I did it this way because it gives us the flexibility of having different keys and different doors without having to add one variable for each different door, specially if I add configure the tags in a uproperty.
    Would you say this is a good solution, to use tags for such a system, or is there another better practice I am not aware of? Sorry if this is a silly question, I have just started this new hobby!

    • @VirtusEdu
      @VirtusEdu  Рік тому +1

      Hey Hiago, this is a really good way to learn.
      In terms of your solution, that's defintely a way to do it. I would say your solution is more scalable.
      In an ideal world we'd have an inventory system but your solution is great.
      Keep up the good work!

  • @chrisblackwood_33
    @chrisblackwood_33 10 місяців тому

    I don't know why, but I was unable to walk though the door, even with the door unlocked, so I had to set the collision of the door frame to "No Collision".
    Excellent tutorial!

  • @Alpatrixx
    @Alpatrixx Рік тому +2

    Maybe make a video on how to make a lockpicking minigame? (kinda like skyrim)

  • @martem000
    @martem000 Рік тому

    Thank you! I would like to know how to properly add the condition that when I am in the collision door, pressing the F key will open if I have the key

    • @VirtusEdu
      @VirtusEdu  Рік тому

      When F is pressed you could get the distance between the player and the door, and then branch checking if the player is within whatever distance you want and the Has Key bool is set to true.

    • @martem000
      @martem000 Рік тому

      @@VirtusEduthank you! 😊

  • @allesklarc4835
    @allesklarc4835 Рік тому +2

    Thank you very great !! Im from Austria

  • @Zero-One1593
    @Zero-One1593 Рік тому

    Hi sir I am learning many things from you thanks for your efforts.

  • @toxicinc763
    @toxicinc763 Рік тому +1

    Can you please help me with
    Buying and select system using blueprints 😢

  • @serizawareda7831
    @serizawareda7831 9 місяців тому

    hi do you think it is possible to update this tutorial and make an ID key system ? like an array in our character variables that can collects our keys and when we got a key in our lvl and try to open a door, it will check if we have the right IDKey ?

  • @omaralhaj9894
    @omaralhaj9894 Рік тому

    please please make a crafting menu tutorial and a inventory with hotbat tutorial.

  • @InfiniteBeyondFiji
    @InfiniteBeyondFiji 10 місяців тому

    Hey whats up creators? Oh nothing much just me subbing to your channel ahahha

  • @tsiqz2891
    @tsiqz2891 Рік тому +1

    Hi are you going to do a tutorial on a endless runner on ue5?

  • @trabbypatty7554
    @trabbypatty7554 Рік тому

    Great video, helped me out a lot! Although for some reason when the door opens with the key, it won't let my character go through... might've messed up on something with the collisions?

    • @VirtusEdu
      @VirtusEdu  Рік тому

      Turn on collision view in the viewport to see if your collisions are covering the door when it opens, that'll help you narrow down the problem

  • @ER3ADD
    @ER3ADD Місяць тому

    just an update you need to plug one comonemet begin overlap box to play timeplay ot the door wont open

  • @Scairp
    @Scairp Рік тому

    Hello, please tell me
    how to stage a cut-scene, mp4, open the door with a key or insert an object and the lock will open
    like in resident evil.

  • @nightshroud1310
    @nightshroud1310 Рік тому

    Hello, i would like to know if it in possible to create more maps, and male them interact and make them move as if it were a puzzle game

  • @kefir_games_original
    @kefir_games_original Рік тому

    How can i make a functionality of that the play can grab multiple amount of keys at the same time?

  • @ihebKirikachi
    @ihebKirikachi Рік тому

    thanks !!

  • @Zero-One1593
    @Zero-One1593 Рік тому +1

    Will you make tutorial on unity?

  • @lozacon
    @lozacon Рік тому

    how would u do this for multiple doors and keys? cos when adding the same door blueprint it uses the same 1 key to open them all and i dont want that, thanks in advance :)

  • @TREEBXY
    @TREEBXY Рік тому

    I have a blueprint system set up so that when i walk into the collision box on the key i press E to pick it up so I don't want it to dissapear when I walk over it.
    Do I still cast it to the character blueprint?? I'm so confused

  • @TunedFM
    @TunedFM Рік тому

    Hello, I’m new here and wanted to request a tutorial I can’t find anywhere. I’m searching a way to crave/mask blueprint texts into static mesh’s parent inside own blueprint. I only found ways to mask boxes or spheres but not font silhouettes or other texture shapes. Hope you could help.

    • @VirtusEdu
      @VirtusEdu  Рік тому +1

      Gonna need some more clarification on this, if you join our Discord server then our team will be able to help you with this problem further

  • @Gta5Tutorial633
    @Gta5Tutorial633 Рік тому

    4.25.3

  • @HotGarbageAlready
    @HotGarbageAlready Рік тому

    What about team 1 gets a key that opens only that door. and team 2 gets a key that opens only a different one. Like I have 24 teams. Each team has a key but it only opens there home. For Fortnite. and only that team can get the key associated with there team. and only one person per team.