Head Bobbing | First Person Walking Camera Shake - Unreal Engine 4 Tutorial

Поділитися
Вставка
  • Опубліковано 30 лип 2024
  • Hey guys, in today's video, I'm going to be showing you how to create a first person head bobbing system using a camera shake. So when the player is walking, there is a level of realism with the camera moving as if it is the player's head. This is great for if you don't have a mesh or animations.
    Idle And Running Head Bob: • First Person Idle And ...
    #Ue4 #UnrealEngine4 #Ue4Tutorial
    ___________________________________________________________________________
    00:00 - Intro
    00:05 - Overview
    00:47 - Creating The Camera Shake
    03:09 - Using The Camera Shake
    08:00 - Final Overview
    09:27 - Outro
    ___________________________________________________________________________
    Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
    The Basics Of Nodes Playlist: • The Basics Of Nodes In...
    Blender Tutorials Playlist: • Blender Tutorials
    ___________________________________________________________________________
    If you enjoy make sure to subscribe: / @mattaspland
    Join My Discord Server: / discord
    Follow Me On Instagram: / matt_aspland_
    ___________________________________________________________________________
    If you want to support me, you can PayPal me at "matt.aspland.1@gmail.com". This is by no means expected or required. It is just a nice support :)
    Link to PayPal: www.paypal.com/
    You can also support me on Ko-Fi following this link: ko-fi.com/mattaspland
    Thank you :)
    ___________________________________________________________________________
    ♫Music By♫
    ●Kronicle - Chill Noons
    ●Soundcloud - / the-chemist-10

КОМЕНТАРІ • 156

  • @MattAspland
    @MattAspland  3 роки тому +23

    Hey guys, the image at 01:13 is wrong. It wasn't like this when I was editing it so I don't know how that happened. Really sorry guys. This is the image I originally had in there.
    imgur.com/a/jyWl5r3

    • @mohammadjavadehsani346
      @mohammadjavadehsani346 3 роки тому +1

      😁

    • @RAY_EN_DEV
      @RAY_EN_DEV 3 роки тому +3

      i don t have camera shake blueprint

    • @MattAspland
      @MattAspland  3 роки тому

      @@RAY_EN_DEV Hey, that's strange, it should be there. Did you make sure you spelt it 100% correct? If so, what engine version are you running?

    • @RAY_EN_DEV
      @RAY_EN_DEV 3 роки тому +1

      @@MattAspland last one

    • @MattAspland
      @MattAspland  3 роки тому

      @@RAY_EN_DEV Oh weird, can you send a screenshot of your search for the camera shake blueprint? So I can see what you are seeing? imgur.com/ will probably be the easiest way to send a screenshot.

  • @HappyJCGamerz
    @HappyJCGamerz 2 роки тому +76

    For people using UE 4.26 + and cant find the camera shake he has used, the node you are looking for is the "Matinee Camera Shake"

    • @zefire_
      @zefire_ 2 роки тому +3

      you save my life thx

    • @luckieluuke131
      @luckieluuke131 2 роки тому

      Thanks, but I cannot find the stop matinee camera shake, only start. So How do I stop the camerashake?

    • @x6ledateditor
      @x6ledateditor 2 роки тому +1

      @@luckieluuke131 same

    • @lintg4822
      @lintg4822 2 роки тому +1

      Thanks man 😌

    • @secretedit
      @secretedit 2 роки тому +1

      thank you so much

  • @syskeye
    @syskeye 2 роки тому +29

    For those who cannot find Play Camera Shake, its renamed to Start Camera Shake

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

    Thank you Matt, saving us all once again with the tutorials!

  • @lilsquirt9889
    @lilsquirt9889 3 роки тому +4

    Thank you so much for providing us with your tutorials!!!

    • @MattAspland
      @MattAspland  3 роки тому +1

      No problem mate, it's my pleasure :)

  • @albanonovais5726
    @albanonovais5726 2 роки тому

    Thank you for sharing, have learned a lot from you, awesome tutorials need them all!!

  • @pandagames3522
    @pandagames3522 2 роки тому +1

    Thanks, i am working on a short horror game and this was a big help!

  • @iRedCraft
    @iRedCraft 3 роки тому +22

    For the oscillation duration, you can also put -1 instead of a really big number, that means infinite.

    • @coffee-beast-99z
      @coffee-beast-99z Рік тому +3

      If you do this, and you don't check "immediately" on the stop camera node, the camera shake will play forever. I recommend setting a finite number, such as 999999, so you get the blend out!

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

    Really helped me out with this one! Some comments definitely saved me too!!!

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

    works great, just wont stop shaking once character is stopped

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

      Keep the "Stop Camera Shake" checked instead of unchecked and then just change the start/stop blend times in the shake blueprint itself - solved it for me but theres
      probably a better way.. :)

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

    quality tutorials, thanks very much

  • @bilegtni5202
    @bilegtni5202 3 роки тому +1

    this is exactly what i need thanks matt

    • @MattAspland
      @MattAspland  3 роки тому

      That's great to hear, no problem mate :)

  • @mhze
    @mhze 3 роки тому +1

    Thanks for this tutorial!

    • @MattAspland
      @MattAspland  3 роки тому

      No problem man, happy to help :)

  • @alexjr977
    @alexjr977 3 роки тому +3

    Thank you so much Matt :)
    I also use Exodus

    • @MattAspland
      @MattAspland  3 роки тому +1

      No problem mate!
      Yeah, it's great for beginners, we're at the start of it all increasing exponentially again!

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

    For people struggling with stopping the camera shake smoothly, placed a "Retriggerable delay" node after Play Camera Shake and linked it into the reset pin of my Do Once node. Adjusting the duration to one second in the shake asset then allows it to blend and play repeatedly instead of canceling early and potentially jerking the camera. This alleviates the need for a stop camera shake function.

  • @andregomessoares
    @andregomessoares 3 роки тому

    Thanks a lot! But I just have other camera shake for camera zoom with autofocus. How can I call this specific camera shake to the walking character?

  • @luckieluuke131
    @luckieluuke131 2 роки тому

    When using a gamepad and walking slowly the full camera shake animation is played. Is there a way to make it so that it only plays a little when walking slowly?

  • @rinfinner
    @rinfinner 3 місяці тому +1

    Heya, if anyone uses this in UE5. Here are some nice things to know, its called "LegacyCameraShake", to show the nodes like start/stop camera shake that he was using you can turn off "Context Sensitive". And if you are just connecting it to the movement system of the template, it won't be able to stop, so to fix that you have to attach the camera shake code not to that, but to "Event Tick". Hopefully someone finds this out as i just wasted like a good hour on this.

  • @txmper7034
    @txmper7034 2 роки тому

    Hi, at 3:34 I wasn't able to find Player Camera Manager at all. Any suggestions?

  • @stevenwynn819
    @stevenwynn819 3 роки тому +1

    I didn't know that camera shake was even a BP node. Thanks for the tutorial!

    • @MattAspland
      @MattAspland  3 роки тому

      It's a great one Steve, it can be utilised to give great effects!

    • @TrojanLube69
      @TrojanLube69 3 роки тому

      A class, not a node. Also make sure you check if it’s valid before stopping. Is best to store as a variable and check validity. I have seen crashes in the shipped windows 64 in some weird instances were the code lags behind processing time.

    • @stevenwynn819
      @stevenwynn819 3 роки тому

      @@TrojanLube69 Thanks for the important tip!

  • @abdullahsohail5395
    @abdullahsohail5395 3 роки тому +1

    Nice video dude

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

    When I stop moving the camera shake still plays how do I solve this?

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

    MAN i did everything same to same and even twice. But i didn't get a result. I am using UE 5.1 and i noticed that when we start making shaking blueprint. I can't find the Play camera shake (anim) Function. I found Start camera shake function. Is there a difference between both of them or this is just a different versions issue??

  • @harishvijendiran5234
    @harishvijendiran5234 3 роки тому +1

    Wow this is feature adds a realism in first games, thank you man 😊👌

    • @MattAspland
      @MattAspland  3 роки тому +1

      Absolutely mate! Thank you, I appreciate it :)

  • @RekkedTR
    @RekkedTR 6 місяців тому

    I have your tutorial on the footsteps sound and I know this is an old video but I was hoping that you could help me out. I would like to have footsteps and camera shake but idk how too

  • @casey_shame
    @casey_shame 3 роки тому

    My man!

  • @Tegurd
    @Tegurd 11 місяців тому

    I used this but made it more go up and down, but when I attach a mesh to the character it doesn't follow the camera shake. Does anyone know how to solve this?

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

    My camera won’t stop oscillating after I stop moving. any ideas on how i can stop it?

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

    Will you redo these tutorials in ue5?

  • @juancharistheashawu
    @juancharistheashawu 3 роки тому +3

    Hi, ur tutorials are amazing, can you make a tutorial about turn in place animation in true first person? Thank you.

    • @MattAspland
      @MattAspland  3 роки тому +1

      Hi, thank you so much man! I appreciate that. And I can definitely add that to my list yeah :)

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

    how can i do this but without the gun i have bouncing up and down

  • @comatoseenigma9200
    @comatoseenigma9200 2 роки тому +1

    i dont have camera shake in blueprints, there is camerashakebase which does not have the options you have :/

  • @MSE7EN
    @MSE7EN Рік тому +3

    Hello! I'm having a couple slight issues in UE 5.1.
    First is that I have this exact node setup but when I stop moving the character, the camera shake does not stop even with the "stop camera shake" placed. I starts smoothly and resets correctly but won't stop.
    Second is that my weapon won't follow with the camera when it shakes back and forth when walking even though it is parented to the camera in the FPS Character BP. It appears to flail all over the screen which is not what I want since I will manually place walking animations onto the weapon myself. How would I get it so that the weapon stays attached to the camera for all movements the camera makes?
    Hopefully that made sense. Thank you for your help!

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

      I have the same problem. did you find a solution ?

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

      @@raphaelruiz543 I did not find a way to get the weapons to follow the camera shake and honestly don't know if there even is a way so I just have that as a part of the weapon bobbing. I decreased the shake intensity so that the weapon only bobs slightly and not all over the screen.
      I did find out how to get the camera shake to stop when I stop walking, though. On top of Matt's setup with the custom functions at 4:25, UE5 has the enhanced input actions that have a bit different setups. So instead of doing the loop like Matt does at 7:25, just attach a start camera shake event call (or whatever you named the custom event) to the "Add movement input" node that is a part of the string in the triggered output on the enhanced input action and then a stop camera shake call to the Completed output on the enhanced input action. And it should work.
      This was a lot of words so if you'd like a screenshot of the BP, I have one in a google drive folder and can share it

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

      @@MSE7EN Thank you, I found the same solution as you yesterday.

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

      @@MSE7EN Hey, I think I could really use the screenshot of the BP.

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

      @@MSE7EN i would greatly appreciate the BP screenshot link! i'm trying to follow your comment but i think i'm doing something wrong

  • @bruhfunny999
    @bruhfunny999 3 роки тому +3

    Ok so this has changed. So I had to pick start camera shake because that's what was available. But now the Get Player Camera Manager node isn't compatible. Any suggestions? Or are you making an updated video on this?

    • @gambello1195
      @gambello1195 3 роки тому +14

      They renamed the camera shake to Matinee Camera Shake, so when creating the camera shake blueprint around 1:00 instead create a Matinee camera shake. Then at 3:39 use a node called "Start Matinee Camera Shake from Source" and select the Camera Shake Blueprint you created.

    • @bruhfunny999
      @bruhfunny999 3 роки тому +1

      @@gambello1195 ok thanks

    • @zephyo7386
      @zephyo7386 2 роки тому

      @@gambello1195 Absolute legend right here

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

      Same problem

  • @mbcreas6676
    @mbcreas6676 2 роки тому

    I can't find any "camerashake", all I find is CameraShakeBase & it doesn't have any settings when opened

  • @tamasgemesi414
    @tamasgemesi414 3 роки тому +2

    I have a little problem. I can't find the camera shake blueprint class. I'm working in the 4.26.1 version. Please help!

    • @bacon_fam8067
      @bacon_fam8067 3 роки тому +5

      Hey I'm not sure if you need any help with this still but I had the same issue but I discovered that the camera shake blueprint class was renamed to "Matinee Camera shake" and my second issue was not having "Play camera shake" but that was also renamed to "Start camera shake".

    • @tamasgemesi414
      @tamasgemesi414 3 роки тому +1

      @@bacon_fam8067 I have found the "Matinee Camera shake" too. But, i don't know why don't you find the "Play Camera shake", because i've got it.

    • @Fooq
      @Fooq 2 роки тому +1

      @@bacon_fam8067 Thanks chief, you saved me a lot of time! This is how it was with mine too.

  • @Neaplitos
    @Neaplitos 2 роки тому

    My camera doesn't stop the oscillation after the character stops. I installed Stop Camera Shake and connected everything. What could be wrong?
    P.S. The stop signal goes to the camera, but it didn't stop.

    • @ryanleber9503
      @ryanleber9503 2 роки тому

      If you have a respawn mechanic when you respawn (if you died while moving) it keeps going indefinitely, currently my issue

  • @shashhh_
    @shashhh_ 3 роки тому +1

    Can you make a third person shooter tutorial :/ been looking around and none and the lasted version of it

    • @MattAspland
      @MattAspland  3 роки тому +1

      Hey mate, I can add that to my list for sure!

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

    Cool but needs an update for 5.1 and beyond, half of this doesn't make much sense with the different node naming conventions in later UE releases. Wasn't able to get this working :/

    • @Shykar0
      @Shykar0 11 місяців тому

      Its just the LegacyCamerashake BP.

  • @amigo401
    @amigo401 3 роки тому

    i dont have camerashake i have 2 diffrent
    can i still do it ?

    • @FreezCS
      @FreezCS 2 роки тому +2

      The camera shake class is now called "Matinee Camera Shake" and the node that plays the camera shake is called "Start Camera Shake"

  • @Jim-cv2li
    @Jim-cv2li 3 роки тому +1

    Thanks for the tutorial ! How to do the same thing but for running ?

    • @MattAspland
      @MattAspland  3 роки тому

      Hey, no problem mate. What you could do is maybe have another check to see if the player's speed is above a different value, i.e. running, and if it is, play a different camera shake which is more violent. I can add this to my list too :)

    • @Jim-cv2li
      @Jim-cv2li 3 роки тому +1

      ​@@MattAspland Thanks for the answer !

    • @MattAspland
      @MattAspland  3 роки тому

      @@Jim-cv2li No problem!

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

    I didn't find the camerashake class

  • @danyort1014
    @danyort1014 3 роки тому +1

    Help, on 3:38 there's no play camera shake, is there any solution?

    • @MattAspland
      @MattAspland  3 роки тому

      Hey, if you un-tick "context sensitive" in the top right off the search bar, does that help?

    • @danyort1014
      @danyort1014 3 роки тому

      @@MattAspland Yes, i did, but there's only 'play world camera shake'

    • @MattAspland
      @MattAspland  3 роки тому +1

      @@danyort1014 Oh strange. Which engine version are you using? Also, the world camera shake will still work, you'll just need to modify some things slightly. Let me know which parts of it you need help with

    • @danyort1014
      @danyort1014 3 роки тому +1

      @@MattAspland The version is 4.26.0. Also i have stop camera shake, but it's called function (with icon like custom events on 4:00 have. I need to return value from get player camera manager to play world camera shake, but there's no target, what i need to do?

    • @MattAspland
      @MattAspland  3 роки тому +2

      ​@@danyort1014 Ah okay, weird. But you wouldn't need the target on this one, the epicentre would be "get actor location" and the inner radius would be 5

  • @Lucifer_ZC
    @Lucifer_ZC 2 роки тому

    Can you create a How to create a inventory But advanced???

  • @LessThanGreaterThan1
    @LessThanGreaterThan1 2 роки тому

    at 5:44 i cant find the float grid (im on ue5 btw)

  • @mhze
    @mhze 3 роки тому +1

    can you plz make a tutorial that teaches how to make ideal camera shake?

    • @MattAspland
      @MattAspland  3 роки тому

      Hey, do you mean idle? If so, then yep I can add it to my list

    • @mhze
      @mhze 3 роки тому +1

      @@MattAspland yeah...sorry for my bad english...please make a tutorial that teaches how to make walking camera shake mixed by idle camera shake....so when i walk in my game there should be walking camera shake and when i don't do anything there should be idle camera shake...i'm actually looking for this tutorial for a week!
      Thank you!

    • @MattAspland
      @MattAspland  3 роки тому +1

      @@mhze Great, no problem mate! Sounds good :)

  • @beamngsamurai8
    @beamngsamurai8 3 роки тому +1

    Please do a parkour system.

  • @mhze
    @mhze 3 роки тому

    it is not working for me!...I dont have camerashake blueprint...CAN YOU PLZ HELP ME?

    • @MattAspland
      @MattAspland  3 роки тому

      Hey, did you make sure to search for it under "All Classes" spelling it 100% correctly?

    • @trx6049
      @trx6049 2 роки тому +1

      If you have version 4.26 then it's now called "Matinee Camera Shake"

  • @Grand-warden
    @Grand-warden 3 роки тому +2

    can you make the revive system? multiplayer plss

    • @MattAspland
      @MattAspland  3 роки тому +2

      Hey mate, I can add that to my list for sure!

    • @Grand-warden
      @Grand-warden 3 роки тому +2

      @@MattAspland Thanks man 😊😊

  • @RRRR_281
    @RRRR_281 2 роки тому

    for me camera shake dosent appear

  • @bigboygrumpy8821
    @bigboygrumpy8821 3 роки тому

    why dont I have the option to choose "CameraShake" I only see CameraShakeBase

  • @renexthegod4538
    @renexthegod4538 2 місяці тому

    my camera shake movement is extremely small, it barely even moves

  • @envo9059
    @envo9059 3 роки тому +4

    Hey can you maybe do this again in version 4.26.1+ cause they removed and renamed alot of the nodes used in this video

    • @aaronjenkins2225
      @aaronjenkins2225 3 роки тому

      which ones are you after bud? :)

    • @trx6049
      @trx6049 2 роки тому +5

      The camera shake class is now called "Matinee Camera Shake" and the node that plays the camera shake is called "Start Camera Shake"

    • @AdeptusIncompetus
      @AdeptusIncompetus 2 роки тому +1

      @@trx6049 Thanks for the tip!

    • @wal_rider8479
      @wal_rider8479 2 роки тому

      @@trx6049 Thanks for the help! I was just searching for this comment hoping I wouldn't have to scour the internet for the node XD

    • @luckieluuke131
      @luckieluuke131 2 роки тому

      @@trx6049 But I cannot find a Stope matinee camera shake" so i don´t know how to stop it...

  • @bilegtni5202
    @bilegtni5202 3 роки тому

    bro my ue4 is very very very slow i need help

    • @MattAspland
      @MattAspland  3 роки тому +1

      Hey man, what are your PC specs? Do they match the minimum requirements?
      www.unrealidiot.com/unreal-engine-4-system-requirements

    • @bilegtni5202
      @bilegtni5202 3 роки тому +1

      @@MattAspland bro i will upgrade my pc, thank you very very very much for helping me

    • @MattAspland
      @MattAspland  3 роки тому

      @@bilegtni5202 No problem mate, that's great to hear! :)

  • @RaymondGOAT
    @RaymondGOAT 3 роки тому +1

    You know to create a looping hallway

    • @MattAspland
      @MattAspland  3 роки тому +1

      I have an idea in my head of how, I can add it to my list :)

  • @bruhboi333
    @bruhboi333 3 роки тому +1

    Hey, there is no play camera shake, any suggestions?

  • @rubensgalaxy
    @rubensgalaxy 2 роки тому +3

    in UE5....play Camera Shake...is..... Start Camera Shake.........and Value < = 0

  • @eemil333.
    @eemil333. 2 роки тому

    5:49 just use != 0 you can also set the duration to -1 to make it loop