Unreal Engine 4 - Advanced Wall Running Tutorial (4/5)

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

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

  • @TheGforce7204
    @TheGforce7204 2 года назад +5

    If anyone wants the wall run to be initiated with just the forward keys. Then go to the "AreRequiredButtonsDown" function and in the right axis bool parts. Replace them with Forward Axis greater than 0.1 for both Left and right. Now u don't have to press the right or left direction keys for the wall run to happen. Only pressing forward will do the job just fine

    • @3zzzTyle
      @3zzzTyle Год назад +1

      It's even simpler than that, you can just return result of first comparison between Forward Axis and 0.1

  • @Romain_Derelicts
    @Romain_Derelicts 3 года назад +5

    Your tutorial is also perfect to adapt for multiplayer ! I actually try another wall run system before using a lot of line traces but it was a nightmare to replicate !

  • @JustEnjoytheGames
    @JustEnjoytheGames 3 года назад +2

    This is awesome. I took out the branch for checking if the player is falling so my player can jump into wall run and fall into it as well, maybe not the best for realism but feels nice for me

  • @amti41
    @amti41 4 года назад +1

    I had the same problem like most of the comments , I can walk on part of wall but on the other one i can't .
    After watching this again I saw my mistake , instead to Split Struct Pin drag and search for break hit result and instead of Drag from Out Hit Impact Normal drag from Impact Normal
    Also do this to Are Required Keys too

  • @quantumcatoscar5482
    @quantumcatoscar5482 3 года назад +3

    Thanks for providing an incredibly informative tutorial. I'm still new to Unreal Engine and I'm studying while watching your video. I want to ask you a question. In the way of video, while wall running is not affected by gravity, it moves forward endlessly along the wall, but I want to implement a more realistic wall running by applying gravity or a timer to it. Can you tell me which method is possible?

    • @quantumcatoscar5482
      @quantumcatoscar5482 3 года назад +2

      I simply set the gravity scale to 1.0 after the 'begin wall run' event, but this method doesn't seem to work.

  • @realpipebomb
    @realpipebomb 3 года назад +3

    Can't run on the wall, if it's on the left side, any help?

  • @beamerbotch
    @beamerbotch 3 года назад +2

    At 0:37 my hello message does not pop up. I've used breakpoints & i found out that the breakpoint works on the branch connected to "CanSurfaceBeWallran" but not the branch connected after it.
    I've rematch all of the last video checking every time that I had done the right thing, everything is the same. Are you able to help?

  • @gamerweed6949
    @gamerweed6949 3 года назад +1

    how to replicate this? And if u See right and fly and Spam Buttons U fly fix of this go press loop in timeline

  • @itszuche
    @itszuche 4 года назад +1

    Hey Im having an issue, everything seems to be functional except i cant wall run both ways on a wall. If i can wall run left on a wall i cant wall run right on it unless i am on the opposite side of the wall also resulting in me not running left on that side. Any ideas where my blueprints could be messed up so i can go both ways on the same wall side?

    • @itszuche
      @itszuche 4 года назад +1

      Great set of videos btw really great job!

  • @ericseel9556
    @ericseel9556 2 года назад

    Hey man, I had a question. I am working on a third person character in my project, any idea on how to make animations work from both the left and right wall?

  • @cristianolvera1868
    @cristianolvera1868 2 года назад

    Is there a way to make it so that when I move the camera up while wall running it moves the player up along the wall? Likewise if I were to move the camera down the player would move down along the wall. Kinda like a wall ride if that makes any sense.

  • @LoneWolf6063
    @LoneWolf6063 3 года назад +1

    I know its pretty late but if u could tell me to add gravity to make it fall just like titanfall after some distance would be pretty great

    • @TaylorBroussardShow
      @TaylorBroussardShow 3 года назад +2

      Idk if you figured it out, but instead of killing all gravity from the character, just reduce it from 1 to like 0.1 or 0.05 so you fall slowly down the wall rather than staying even with the wall.
      Or at least that's what I'd think to do.

    • @TaylorBroussardShow
      @TaylorBroussardShow 3 года назад +1

      Okay I lied, it's actually more complicated than that, you'd also need to tweak the air control as well.

    • @LoneWolf6063
      @LoneWolf6063 3 года назад +1

      @@TaylorBroussardShow yeah

    • @farhanahmed7152
      @farhanahmed7152 2 года назад

      Did anyone figure this out?

    • @Squamme
      @Squamme 7 месяцев назад

      When you add 0 gravity change it to a higher gravity force to pull you down like tital fall 2.

  • @trashflipzyy3627
    @trashflipzyy3627 3 года назад +2

    a problem i have is whenever i jump off the wall i just fly straight up. help would be apreciated
    edit: i fixed it, no need to help me now

    • @handomize
      @handomize 3 года назад

      how did you fix it, having the same problem here

    • @trashflipzyy3627
      @trashflipzyy3627 3 года назад +1

      @@handomize there was one scale i forgot to set, I dont remember which so I recommend watching through the whole video again and carefully check as thats what I did.

    • @handomize
      @handomize 3 года назад +2

      @@trashflipzyy3627 yeah, for me i put a 0 instead of a 1. Whatched the whole thing twice lol

    • @handomize
      @handomize 3 года назад

      @@MrGene15 it was on the animation timeline, on the crouch part

    • @gamerweed6949
      @gamerweed6949 3 года назад

      @@handomize TimeStamp?

  • @kumarsinghaditya5
    @kumarsinghaditya5 4 года назад

    Awesome Tutorials! Just one problem with mine is that if I dont release the required keys for wall run (A or D) after wallrunning off surfaces with edges at 90 degrees
    , my character floats in air. Character lands when i release the required keys, can someone explain what's going on?

  • @hakkkocar1847
    @hakkkocar1847 2 года назад

    Which keys do we press first? because I'm jumping against the wall but it's not working. I checked the whole series from the beginning, everything is correct. but it never hits. (version 4.26.2)

  • @samuelsim6123
    @samuelsim6123 4 года назад +2

    Hi, first off, thanks for this tutorial series, I have always wanted to implement a good solution to wall running for a parkour prototype I am working on.
    I need some help with a problem where in the Update Wall Run function, the raycast always returns false which leads to the wall run ending from the subsequent branch node. Which probably means the start and end vectors passed into the raycast (one or the other, or both) are wrong... but I can't figure out why as the math seems correct from following your tutorial. Sorry if I phrased the problem in a hard way to understand.

    • @ReidsChannel
      @ReidsChannel  4 года назад +1

      Hey no problem :)
      About your bug, I'm not really sure without actually seeing the code. If you want to add me on discord its: blindopoly#1003. I can try to help you out on there.

    • @samuelsim6123
      @samuelsim6123 4 года назад +1

      I figured out the problem! After drawing the debug rays I realized they are not hitting the wall at all, as they are pointing inwards of the wall. I did a quick fix by changing the left and right vectors to (0,0,1) and (0,0,-1) respectively before doing the cross product and returning the result in the FindRunDirectionAndSide function, and it now works as expected. Must have made some mistakes way earlier to have such result, I suppose.

    • @ReidsChannel
      @ReidsChannel  4 года назад +1

      Ah nice job! Yeah, the order you pass vectors to the cross product is important. If they're reversed, it will return a vector in the opposite direction.

  • @ui_speedzy1829
    @ui_speedzy1829 3 года назад

    If i wanted to be able to wall run without holding down left or right keys / a or d keys how would i go about that

    • @yeetyoottootyt8860
      @yeetyoottootyt8860 2 года назад

      literally dont include that function and do everything else the same

  • @lolololololnoobs
    @lolololololnoobs 4 года назад

    i get error inside updatewallrun, when i try to get end wall run and branch it. the error say "can modify state and cannot be called "self" because it is read- only target in this context
    any help would be great i checked to see if i can toggle something to make it work but cant find anything

    • @lolololololnoobs
      @lolololololnoobs 4 года назад +2

      figured it out the update walll run was ticked constatnt i just unticked it

  • @VydeoGramesJunk
    @VydeoGramesJunk 4 года назад

    I am having a problem, I can only wallrun on the right and not the left, anyone has an idea why?

    • @haddi8582
      @haddi8582 4 года назад

      I had the same problem, try to check your "find run direction" I didn't link it properly there.

  • @lukethomas8435
    @lukethomas8435 4 года назад

    For some reason the update wall run doesn't always work properly and my characters gravity stays at 0, How do make it so it always works?

    • @lukethomas8435
      @lukethomas8435 4 года назад +1

      Never Mind I forgot to loop the time line 😅

  • @marcel5701
    @marcel5701 4 года назад

    everthing is working, but i can only run on 1 side of a wall in 1 direction and not in both. to wall run in the opposite direction, i have to run on the other side of the wall.

    • @ReidsChannel
      @ReidsChannel  4 года назад

      Hey then you've messed up somewhere. Double check everything matches the tutorial. Also try adding breakpoints and printstrings to help debug

    • @marcel5701
      @marcel5701 4 года назад

      @@ReidsChannel Okay so i tried some Prints at some points. I can run on 1 Wall on both sides, but only in 1 direction. If i do a print in "FindRunDIrectionAndSide" and print the value after the first "dot" it gives me 1 or -1. if i run in the other direction it prints values beweteen 0.5 to 1 or -0.5 to -1 but every few frames, there are negativ values where it should be positive and the opposite. that should be the reason why it does not work. But i dont know where the mistake could be made. i checked everything

    • @ReidsChannel
      @ReidsChannel  4 года назад

      @@marcel5701 Join my discord (link in description) and ill try to find time to help you out.

  • @nightshade4391
    @nightshade4391 4 года назад

    why is camera tilt not working for me?

  • @OoXLR8oO
    @OoXLR8oO 4 года назад

    Hi again, I just did the Print String test that you did at 0:37, and it seems like my code wasn’t detecting the wall. I put a breakpoint down at the On Wall macro that’s connected to the OnComponentHit node and I found that the path stops at the first branch after On Wall. Is that normal?

    • @ReidsChannel
      @ReidsChannel  4 года назад

      Hey, well its normal depending on the current state of your game. Is something not working? If you're not detecting the wall at 0:37 then you need to rewatch and make sure you followed along correctly :)

    • @OoXLR8oO
      @OoXLR8oO 4 года назад

      Reid Treharne Hi again, I’ve had a bit of progress with the issue, that being I can detect the left side of the wall but not the right. I know it had something to do with the Switch node in Are Required Keys Down, and when I added a Breakpoint to that node, I noticed that the Exec line was red prior to it. Any suggestions?

    • @ReidsChannel
      @ReidsChannel  4 года назад

      @@OoXLR8oO Hey, I'm not sure what you mean by "was red prior to it." However, it would be significantly easier for me to help you over discord if you have that. If so, add me and I'll help you there. It's very late here though so I probably wont be able to until tomorrow.
      Discord: blindopoly#1003

  • @godzzz1524
    @godzzz1524 3 года назад

    i fly away

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

      turn gravity off

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

      @@oliverbrown9634 I know it took 2 years but thank you so much

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

    17:09

  • @noctis7093
    @noctis7093 4 года назад

    how hard would it be to adjust this and add vertical wall running too?anyone tried it?

    • @ReidsChannel
      @ReidsChannel  4 года назад +2

      It is pretty easy. The math is basically the same except in the UpdateWallRun you just want to set the velocity to up instead of left/right

    • @noctis7093
      @noctis7093 4 года назад +2

      @@ReidsChannel thank you so much for the fast reply and the great tutorial it has been really helpful and easy to follow along

  • @ALYTV13
    @ALYTV13 4 года назад +1

    Instead of being able to run I amble able to jump to walls as many times as i want but otherwise i am not able to run and just fall off

    • @ReidsChannel
      @ReidsChannel  4 года назад

      What? I'm not sure I understand your question.

    • @ALYTV13
      @ALYTV13 4 года назад

      @@ReidsChannel When I jump and hold W and A/D (Left/Right wall run) instead of running on the wall as you are able, I just fall off.

    • @ALYTV13
      @ALYTV13 4 года назад

      Could Tutorials i used for sprint with stamina: ruclips.net/video/u4XjNcNobek/видео.html and crouching: ruclips.net/video/xKWj1qKBhaM/видео.html have interfered with this code?

    • @ReidsChannel
      @ReidsChannel  4 года назад +1

      @@ALYTV13 Hey I'm not sure. Trying adding some breakpoints to your code or print strings in order to debug it.

    • @sovietbirb172
      @sovietbirb172 4 года назад

      @@ReidsChannel it hppend to me. it seems like he automaticly stops wallruning

  • @mobyygd
    @mobyygd 4 года назад

    I cant wall run! Please help!

  • @GrimUmU
    @GrimUmU 4 года назад

    what is the correct keys to press so the hello print can show up ?

    • @ReidsChannel
      @ReidsChannel  4 года назад

      What? Can you link me to the section in the video you're talking about.

    • @crimson4652
      @crimson4652 3 года назад

      @@ReidsChannel 0:44

  • @doorthrower
    @doorthrower 4 года назад

    hey, im having an issue, when i jump off the wall i can jump infinitely?

    • @ReidsChannel
      @ReidsChannel  4 года назад

      Make sure in EndWallRun you're resetting your jumps correctly.

    • @DevGods
      @DevGods 4 года назад

      @@ReidsChannel Yea Im getting the same issue. Im printing my "JumpsRemaining" Int to the screen and it goes to zero and instantly resets to 1 lol this is a bug for sure ! Im guessing the ResetJumps keeps getting called even when youre no where near a wall and jumping.. Imma do some further digging.

    • @DevGods
      @DevGods 4 года назад

      I converted this tutorial to c++ so my logic looks a little bit different, but an easy fix is to remove the Select on EndWallRun where you see why you are no longer wall running (the one around 6:17 in this video) remove that one and instead put a ResetJump(MaxJumps) into the logic right after you begin wall running. It pretty much does the same thing minus when you fall off the wall you still get 2 jumps. Until I find another fix this does fix the endless jumping...

  • @recallmycode
    @recallmycode 4 года назад

    Hi, I have a problem, every time I stop Holding the keys(A and W) while I'm wall running, I begin to fly, can you help me?
    (sorry for the bad English, Im from Germany)

    • @ReidsChannel
      @ReidsChannel  4 года назад

      Yeah I can help, just shoot me a message on discord: blindopoly#1003

    • @recallmycode
      @recallmycode 4 года назад

      @@ReidsChannel I can't find your account

    • @recallmycode
      @recallmycode 4 года назад

      @@ReidsChannel can you try to write a message to me? (Rizzo#9159)

    • @steampunkabyss6212
      @steampunkabyss6212 4 года назад

      @@recallmycode I had a similar problem. I forgot to check looping in the Timeline settings. Once I did it was fixed

    • @ReidsChannel
      @ReidsChannel  4 года назад

      @@steampunkabyss6212 I found you on discord. Sent you a message :)

  • @vbpstudios6449
    @vbpstudios6449 2 года назад

    i forgot the right keys

  • @AryanGupta-yr8rg
    @AryanGupta-yr8rg 3 года назад

    18:20

  • @godzzz1524
    @godzzz1524 3 года назад

    can someone help me pls

  • @warheadwarfare
    @warheadwarfare 4 года назад

    I am interested in making a donation to your channel if you can tell me how I can replicate it for a multiplayer, where you can write to send the donation I can make it by paypal thanks.

    • @ReidsChannel
      @ReidsChannel  4 года назад

      Hey I'm still trying to figure out how to get it fully replicated in multiplayer. I was able to get it replicated but as soon as I introduced any amount of latency it began running into bugs so I had to go back to the drawing board. I've yet to get it working perfectly in a real world networked scenario so unfortunately I can't tell you how to do it otherwise I would! I know it has to be done by creating a custom CharacterMovementComponent as described here wiki.unrealengine.com/Authoritative_Networked_Character_Movement (most be done in C++) but I've yet to get it fully working, sorry about that. :/

    • @ReidsChannel
      @ReidsChannel  4 года назад

      Hey, I've just uploaded a networking tutorial on how to replicate sprinting and wall running. You can check it out here: ruclips.net/video/RtQRMcupJs0/видео.html