Creating a Simple Puzzle in Unreal Engine 5 - Tutorial

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

Комментарии • 26

  • @apananabeel
    @apananabeel Год назад +5

    Dude I had no idea event dispatchers were that easy to implement. I came here for a simple puzzle tutorial and learned a bonus lesson!

  • @Smithsam610
    @Smithsam610 Год назад +4

    Great tutorial. I like how you laid out your thoughts before blueprinting.

  • @phonixgz7127
    @phonixgz7127 Год назад +2

    Tnq
    Whats your program at frist of video for show laid out?

  • @MrPentagear
    @MrPentagear Год назад

    Instead of doing GetActorOfClass, it would be better to create a Actor Reference on the door, so you can explicitly define the button that interacts with the door. That way you can use multiple of these in a single level :).

    • @ledthegamedev
      @ledthegamedev  Год назад +1

      I like your thinking. You would just need to define which door is which with a tag maybe.

  • @joshuahorton7936
    @joshuahorton7936 Год назад +1

    one of the issues i had was if u change the speed the door moves. from 0.2 to w.e lets say 2 seconds, if u get off the button then back on it moves the door 500 units from its current location rather than its starting position. Is there a way to avoid this

    • @joshuahorton7936
      @joshuahorton7936 Год назад +2

      also if the player and the cube are on the same switch it messes up the door as well

    • @ledthegamedev
      @ledthegamedev  Год назад

      Yea, whats happening is your not leaving enough time for the block to get back to the starting location. To fix this, you might want to use a timeline with a vector curve insted of Move Component To. Timeline will let you give a start and end location. Your Open Event will plug into the Play. and Close Event will plug into Reverse. If you want to prevent the cube and the player from setting it off at the same time, this will take more work. Youll need to have a branch on begin overlap that will tell it to check if the cube has already activated it to a specific component, you could use a blueprint interface to let the button know what object is currently activating it.

    • @joshuahorton7936
      @joshuahorton7936 Год назад +1

      @@ledthegamedev thanks for the reply. Thats exactly what I ended up doing ty ty

    • @ledthegamedev
      @ledthegamedev  Год назад +1

      @@joshuahorton7936 sweet

    • @IOP_Dev
      @IOP_Dev Год назад +1

      In had this issue too, my solution was to set the collision of the switch to ignore the player (my logic is the player is too light to activate) and then instead of having the + node, delete it and just manually set the location of the closing 'move component to' by copy pasting the location of the door when it's closed!

  • @DDSwift
    @DDSwift Год назад

    If you dont mind, is there a way you can demonstrate not require editing the blueprint ?

    • @ledthegamedev
      @ledthegamedev  Год назад

      what do you mean exactly?

    • @DDSwift
      @DDSwift Год назад

      Sorry, I mean as in when you make another door and button, I was wondering if I could use the exact same blueprint without editing it however, the door has its own identity so it will only open to certain buttons.

    • @ledthegamedev
      @ledthegamedev  Год назад

      @@DDSwift Yea, the dispatchers are where its getting the identification. if you just duplicate them, both buttons will open and close 2 doors. It would be possible to add a bool that will check what door it is, maybe using the Tag system.

  • @leissram_
    @leissram_ Год назад

    How come mine doesnt go up then come back down, it instead goes off in a random direction and stays there?

    • @ledthegamedev
      @ledthegamedev  Год назад

      Are you getting world location and adding 500 in the Z axis?

    • @pumpkinstiic7645
      @pumpkinstiic7645 Год назад

      I have the same problem, are there any fixes? I have the same code as the video

    • @ledthegamedev
      @ledthegamedev  Год назад

      discord.gg/REYFMS8vTX
      You can drop your problem in the problem answers section of the discord channel. That way I can see your BPs and better help with the issue.

  • @exessgames
    @exessgames 9 месяцев назад +1

    not a puzzle....

    • @ledthegamedev
      @ledthegamedev  9 месяцев назад

      Eh it's sort of a puzzle lol. We're you thinking like puzzle pieces?

    • @ravisai5425
      @ravisai5425 6 месяцев назад +1

      😂😂😂😂😅​@@ledthegamedev