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
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
😁
i don t have camera shake blueprint
@@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?
@@MattAspland last one
@@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.
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"
you save my life thx
Thanks, but I cannot find the stop matinee camera shake, only start. So How do I stop the camerashake?
@@luckieluuke131 same
Thanks man 😌
thank you so much
For those who cannot find Play Camera Shake, its renamed to Start Camera Shake
Thank you! 😃
Thanks. this video is oddly confusing
Thank you Matt, saving us all once again with the tutorials!
Thank you so much for providing us with your tutorials!!!
No problem mate, it's my pleasure :)
Thank you for sharing, have learned a lot from you, awesome tutorials need them all!!
Thanks, i am working on a short horror game and this was a big help!
For the oscillation duration, you can also put -1 instead of a really big number, that means infinite.
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!
Really helped me out with this one! Some comments definitely saved me too!!!
works great, just wont stop shaking once character is stopped
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.. :)
quality tutorials, thanks very much
this is exactly what i need thanks matt
That's great to hear, no problem mate :)
Thanks for this tutorial!
No problem man, happy to help :)
Thank you so much Matt :)
I also use Exodus
No problem mate!
Yeah, it's great for beginners, we're at the start of it all increasing exponentially again!
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.
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?
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?
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.
Hi, at 3:34 I wasn't able to find Player Camera Manager at all. Any suggestions?
I didn't know that camera shake was even a BP node. Thanks for the tutorial!
It's a great one Steve, it can be utilised to give great effects!
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.
@@TrojanLube69 Thanks for the important tip!
Nice video dude
Thanks a lot man!
When I stop moving the camera shake still plays how do I solve this?
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??
Wow this is feature adds a realism in first games, thank you man 😊👌
Absolutely mate! Thank you, I appreciate it :)
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
My man!
My pleasure!
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?
My camera won’t stop oscillating after I stop moving. any ideas on how i can stop it?
Will you redo these tutorials in ue5?
Hi, ur tutorials are amazing, can you make a tutorial about turn in place animation in true first person? Thank you.
Hi, thank you so much man! I appreciate that. And I can definitely add that to my list yeah :)
how can i do this but without the gun i have bouncing up and down
i dont have camera shake in blueprints, there is camerashakebase which does not have the options you have :/
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!
I have the same problem. did you find a solution ?
@@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
@@MSE7EN Thank you, I found the same solution as you yesterday.
@@MSE7EN Hey, I think I could really use the screenshot of the BP.
@@MSE7EN i would greatly appreciate the BP screenshot link! i'm trying to follow your comment but i think i'm doing something wrong
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?
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.
@@gambello1195 ok thanks
@@gambello1195 Absolute legend right here
Same problem
I can't find any "camerashake", all I find is CameraShakeBase & it doesn't have any settings when opened
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!
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".
@@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.
@@bacon_fam8067 Thanks chief, you saved me a lot of time! This is how it was with mine too.
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.
If you have a respawn mechanic when you respawn (if you died while moving) it keeps going indefinitely, currently my issue
Can you make a third person shooter tutorial :/ been looking around and none and the lasted version of it
Hey mate, I can add that to my list for sure!
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 :/
Its just the LegacyCamerashake BP.
i dont have camerashake i have 2 diffrent
can i still do it ?
The camera shake class is now called "Matinee Camera Shake" and the node that plays the camera shake is called "Start Camera Shake"
Thanks for the tutorial ! How to do the same thing but for running ?
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 :)
@@MattAspland Thanks for the answer !
@@Jim-cv2li No problem!
I didn't find the camerashake class
Help, on 3:38 there's no play camera shake, is there any solution?
Hey, if you un-tick "context sensitive" in the top right off the search bar, does that help?
@@MattAspland Yes, i did, but there's only 'play world camera shake'
@@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
@@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?
@@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
Can you create a How to create a inventory But advanced???
at 5:44 i cant find the float grid (im on ue5 btw)
write greater for first less for second
can you plz make a tutorial that teaches how to make ideal camera shake?
Hey, do you mean idle? If so, then yep I can add it to my list
@@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!
@@mhze Great, no problem mate! Sounds good :)
Please do a parkour system.
It's on my list :)
it is not working for me!...I dont have camerashake blueprint...CAN YOU PLZ HELP ME?
Hey, did you make sure to search for it under "All Classes" spelling it 100% correctly?
If you have version 4.26 then it's now called "Matinee Camera Shake"
can you make the revive system? multiplayer plss
Hey mate, I can add that to my list for sure!
@@MattAspland Thanks man 😊😊
for me camera shake dosent appear
why dont I have the option to choose "CameraShake" I only see CameraShakeBase
same
u use the one called matinee camera shake which has the same settings
my camera shake movement is extremely small, it barely even moves
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
which ones are you after bud? :)
The camera shake class is now called "Matinee Camera Shake" and the node that plays the camera shake is called "Start Camera Shake"
@@trx6049 Thanks for the tip!
@@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
@@trx6049 But I cannot find a Stope matinee camera shake" so i don´t know how to stop it...
bro my ue4 is very very very slow i need help
Hey man, what are your PC specs? Do they match the minimum requirements?
www.unrealidiot.com/unreal-engine-4-system-requirements
@@MattAspland bro i will upgrade my pc, thank you very very very much for helping me
@@bilegtni5202 No problem mate, that's great to hear! :)
You know to create a looping hallway
I have an idea in my head of how, I can add it to my list :)
Hey, there is no play camera shake, any suggestions?
search for start camera...
@@FanSRLakaFFakaMaceyaq I figured it out
@@bruhboi333 please if you figure it out tell me how
in UE5....play Camera Shake...is..... Start Camera Shake.........and Value < = 0
lifesaver
Where goes the Value
5:49 just use != 0 you can also set the duration to -1 to make it loop