No video

Unreal Engine 4 Tutorial - Camera Switching

  Рет қаралды 94,577

Ryan Laley

Ryan Laley

Күн бұрын

In this tutorial I go over how to add a camera system that switches cameras to show the player something or the point of view of a NPC conversation.
In this episode I show to easily add a feature so that the camera changes its position/rotation whenever you would like it to. For example how to make a more dramatic conversation exchange between the player and NPC. This is often used to show the player which door has been opened at the press of a switch for example.
If you get stuck, have issues, or any questions about this video topic, please leave a comment below and I will try my best to answer them for you.
Have a suggestion for a video, let me know below in a comment.

Пікірлер: 68
@legacythegame
@legacythegame 4 жыл бұрын
Switching between cameras has been a massive enigma for me for ages, can't believe the 'set view target with blend' node would be such a massive upgrade, thanks Ryan!
@Alaa_alshahed
@Alaa_alshahed 5 жыл бұрын
Dear Ryan, I was following your tutorials since three days ago and let me say your way to teach any new stuff is really amazing and clear especially that you do step by step and telling us what each step do (this point is very important for us to understand more the blueprints) thank you so much and keep it on we need to see more and more videos from you :)
@UselessMiwa
@UselessMiwa Жыл бұрын
this tutorial still works and is better than 90% of the videos ive seen. thankyou
@richmakesgames
@richmakesgames 2 жыл бұрын
Thanks for the explanation of Controller vs Character, I was soo close, but had them the wrong way around!
@tampajoeyz230
@tampajoeyz230 4 жыл бұрын
Awesome video tutorial as usual by Ryan (the Very Best UE4 Tutorials online!). Note: the first "Set Actor Rotation" node Target should be connected to a "Get Player Character" node, so both the NPC and Player Character rotate (in the video, both "Set Actor Rotation" Target nodes are set to self. This is easy to miss if using First Person template as the character is usually positioned facing the NPC, but when using the Third Person Character it become evident that the player is not rotating and setting one of the "Set Actor Rotation" nodes Target to a "Get Player Character" will correct that issue.
@primitivepatterns
@primitivepatterns 2 жыл бұрын
Thank you Ryan, you rule!
@evilgoblinsgame
@evilgoblinsgame 8 ай бұрын
Hi Ryan..at 7.18, one of the "set actor rotation nodes" is supposed to be connected to player character.
@RealDaveTheFreak
@RealDaveTheFreak 3 жыл бұрын
You have no idea how much this has helped!
@alexandrecoelho7570
@alexandrecoelho7570 6 жыл бұрын
Everything working nice, (dialogue and camera) your tutorials are greats.
@bravokevin8473
@bravokevin8473 10 ай бұрын
Great video thanks
@TheGrimmy
@TheGrimmy 4 жыл бұрын
Ah, thank you for this. I wanted something more from your second dialogue series and this video inspired me to make a different camera system. It's not like this one, but I relied on some of the orientation code :)
@MrDevonParsons
@MrDevonParsons 2 жыл бұрын
So simple, game changer, thank you for sharing!
@theJellerShow
@theJellerShow 3 жыл бұрын
Thanks man, your videos are always super helpful
@PaulPaulPaulson
@PaulPaulPaulson 2 жыл бұрын
Thank you, this helped me a lot today
@yuguhtrrh8753
@yuguhtrrh8753 3 жыл бұрын
Hi, I found something else for the same result :> So You can first create Event BeginPlay, put the camera you want to start with and connect them into a Set view Target with Blend Also connect a Get Player Controller to Target Then Create a Trigger box and put it into the Level, go back to Level BluePrints, search for On Actor Begin Overlap ( it will put the name of your trigger box ) Connect it to a new Set view Target with Blend Then take another Get player controller node, connect it to Target take another camera you want to have the switch, in order to connect it to the new set view target with blend repeat it as long as you have cameras / triggers box Hope it helped
@narrgamedesigner2747
@narrgamedesigner2747 2 жыл бұрын
I may need to try this as I am not having much luck with camera switching. Huh soon as I added a Button press but works without a button just fine. :S
@somename371
@somename371 3 жыл бұрын
Thanks! It's so much easier than I thought!
@MetricZero
@MetricZero 6 жыл бұрын
Great stuff as always dude! This is also super awesome timing. I was just trying to figure this out with a friend.
@RyanLaley
@RyanLaley 6 жыл бұрын
Thanks, glad I could help :)
@DenisZaharenko
@DenisZaharenko 2 жыл бұрын
I want to use this for jumpscares in freeroam games.
@stormr
@stormr 3 жыл бұрын
Could this be used as an extra camera on player character so i can zoom in on player after an animation? I dont want to use sequencer because i need it to be used wherever the player is not at a set area.
@milan.980
@milan.980 3 жыл бұрын
bro thanks, I thought it was done by set active with the cameras LOL
@noisyether9211
@noisyether9211 4 жыл бұрын
Hey Thanks bro .I'm making battle system and this is helping a ton.
@Legend64Project
@Legend64Project 2 жыл бұрын
How do you select a specific camera for this to work. I have multiple cameras setup within the same BP but it won't let me hook them up into this node?
@Hpalhazred
@Hpalhazred 2 жыл бұрын
Great tutorial!!!
@whysecundaria1427
@whysecundaria1427 4 жыл бұрын
Thanks, you saved my life now!
@Sagaan42
@Sagaan42 5 жыл бұрын
Hey, you made a mistake! At 7:45, the problem isn't that you've put the nodes backwards, it's that you've forgot to link the player as target for the set actor rotation. Right now, both set rotation nodes affect the NPC!
@skykarel
@skykarel 2 жыл бұрын
thanks, really usefull
@michele_2000
@michele_2000 Жыл бұрын
Yes it works but there is a problem. Why it works only in the firt time? I'm so confused...When my player overlap with the trigger box it works, cameras switches but if my player overlap for the second time with the same trigger box dont works anymore. Please help me
@michele_2000
@michele_2000 Жыл бұрын
P.S. I solved my problem...so...this tutorial works for me.
@Legend64Project
@Legend64Project 2 жыл бұрын
For real, if you have multiple cameras nested within the character blueprint, can you blend them using this node????
@isaackershnerART
@isaackershnerART 5 жыл бұрын
for the making the actor rotate to the player, it is making the actor tilt and look off to the side. Why is my vectors not working?
@ty_teynium
@ty_teynium 3 жыл бұрын
Wait a minute where it says set Actor rotation their both set to self. Shouldn't the other one be set to the player character?
@friendlysealstudio4447
@friendlysealstudio4447 4 жыл бұрын
but what if i have very difrent npc and the camera somethings needs to be further and sometimes closer can i just add a camera on the npc and cast it somehow? ive been trying to do that for a while its not working
@greghunter4143
@greghunter4143 4 жыл бұрын
Hi Ryan, Love the video's! I'm trying to switch to a side on camera as my character goes through a door then blends back to the player cam after he's out of the hit box. I've got it so as you enter the door hit box, the camera switches but I can't switch it back. Any ideas would be massive! Cheers
@Broockle
@Broockle 4 жыл бұрын
which node actually references the camera? I dun get it And is putting a camera into the actor like that the equivalent of parenting in Unity?
@imperitum3585
@imperitum3585 3 жыл бұрын
Thx!
@xantishayde-walker4593
@xantishayde-walker4593 5 жыл бұрын
Love your tutorials. Been following them and mostly everything is working great. There are a few hitches though. Firstly, I am getting errors on the Signpost BP and the NPC BP when exiting the Box Collision area. Nevermind those, I fixed them by putting an IsValid? before the Set Dialogue Text Node. The only other problem I'm having is that when I set up the Camera Switching the Dialogue Widget is created, yet it's blank. When I hit the E Key to interact, it goes thru the rest of the dialogue normally and resets the camera back to my FPS Character. Not sure what I'm doing wrong. Any help would be greatly appreciated. Thanks again, Ryan!
@NinjaThug
@NinjaThug 3 жыл бұрын
Thanks! It helped! But my character doesn't rotate to the AI's side.
@michaelivanov1605
@michaelivanov1605 5 жыл бұрын
And how to make the switch from 1 person to 3 person by moving the camera? By clicking a button in a Widget Blueprint.
@bouichjules7547
@bouichjules7547 2 жыл бұрын
and where is the dialogue video?
@stephenhidalgo7608
@stephenhidalgo7608 4 жыл бұрын
HI Ryan, can this be applicable to multiple camera?
@planet_asylum9059
@planet_asylum9059 3 жыл бұрын
Is there a way to trigger a camera change without referencing the player controller? for example I had a mini golf game and I want the camera to change once the ball has been hit to through the trigger zone.
@Kyle-ho4lj
@Kyle-ho4lj 3 жыл бұрын
sequencer?
@deadchannel6079
@deadchannel6079 4 жыл бұрын
Hey man, first of all thank you so much for making these videos, second I implemented this to my game but I am making a first person game so naturally character show up (glitches? or whatever you wanted to calll it) every time It breaths, I could change the camera view but it looks much worse so is there any way work around this or make the character invisible for the duration of the dialogue?
@deadchannel6079
@deadchannel6079 4 жыл бұрын
Don't know if this is the most efficient way but I fixed it by adding a animation montage of stepping back a little lol.
@shashhh_
@shashhh_ 3 жыл бұрын
Can you do ta tutorial for this on ur latest dialogue system ??
@narrgamedesigner2747
@narrgamedesigner2747 2 жыл бұрын
That would be useful right now. :'D
@edgardgaete3430
@edgardgaete3430 6 жыл бұрын
heya , at 2:17 its a completely different NPC dialogue blueprint than your dialogue tutorial, help a guy out? Thanks :)
@MikeGemi
@MikeGemi 6 жыл бұрын
Yes thats giving me some problems as well.
@lkoroseShinsou
@lkoroseShinsou 6 жыл бұрын
Great tutorial once more! However once again in messing around I've run into a few snags that you might could help me with. For one, the ignore move input and ignore look input doesn't seem to stop my character's ability to jump. I'm still trying to visualize just how everything is connecting together, but I couldn't find the answer as to why this wouldn't stop the jump input. Second, let's say I want to just make the camera attached to the player controller zoom in it's field of view slightly when interacting with NPCs, but allow the player to still move the camera around to view the actors while the dialogue is going. How do I make a reference to the camera inside of the player character to access from another blueprint? I tried setting a variable up in the player controller but I still haven't quite figured out the best way to let it interact between blueprints. Thanks in advance for any answers you may have!
@RyanLaley
@RyanLaley 6 жыл бұрын
To solve the jump issue (and other inputs) you can fix this with a simple branch before executing the jumping function that test if move input is ignored. As for the camera things, one such way is to create a "dialogue Stage" actor that spawns when interacting with the player and you switch to that camera instead and possess it. I haven't tried something like that before but I will have a play around and do a video on it at some point when I get the time.
@lkoroseShinsou
@lkoroseShinsou 6 жыл бұрын
Thanks! I appreciate the reply. I will have to mess around with the camera and actors some more to see if I can come up with something close to my vision. Keep up the awesome tutorials!
@shadesmadness4399
@shadesmadness4399 6 жыл бұрын
I came across the same situation with the jump but can't figure it out... any more specific help?
@shadesmadness4399
@shadesmadness4399 6 жыл бұрын
I figure out how to make the player loose the ability to jump...in fact loose all input all together with the disable input node. This raises the problem of not being able to continue pressing the keys to finish the conversation with the NPC. Any help will be greatly appreciated.
@Astaraa
@Astaraa 5 жыл бұрын
For me the camera is moving into the npc actor's stomach. What do you think is going on there?
@Astaraa
@Astaraa 5 жыл бұрын
Oh I got it. Auto-activate was off for the npc's camera :)
@toshiizo-gumi
@toshiizo-gumi 4 жыл бұрын
This is really confusing. I already done your dialogue tutorial but this video is does not related to that 7 steps dialogue tutorial. I even cannot add to viewport at Dialogue create function as for starter. Do you mind show how is it again from the beginning because, i saw some nodes are not in those 7 tutorials.
@KepperSnapper
@KepperSnapper 4 жыл бұрын
This tutorial was done in relation to another older tutorial from 2017 (check the date). The advanced dialogues ones are more recent
@user-ml3ct8tu2q
@user-ml3ct8tu2q 5 жыл бұрын
Magic video, I want to learn how to make NPCS walk around, can you teach me
@RyanLaley
@RyanLaley 5 жыл бұрын
Yep, there is AI series coming soon, patrons will be having it this week onwards.
@ty_teynium
@ty_teynium 3 жыл бұрын
I tried this and when I exit the camer stays on the Npc character
@narrgamedesigner2747
@narrgamedesigner2747 2 жыл бұрын
Oh I have the same issue, it just decsends instead.
@blix8227
@blix8227 4 жыл бұрын
is this still possible to do if you have your character on Owner No See because your making a FPS?!? Please Help!!
@RyanLaley
@RyanLaley 4 жыл бұрын
Yeah you can do. Just turn that setting off when you initiate dialogue
@blix8227
@blix8227 4 жыл бұрын
@@RyanLaley how would you do that
@baderalqahtani1780
@baderalqahtani1780 5 жыл бұрын
dialogue isn't showing anymore, completely blank.
@benz4977
@benz4977 5 жыл бұрын
hi Ryan pls help, i got the same issue as well.
Unreal Engine 4 Tutorial - Vertex Painting
11:25
Ryan Laley
Рет қаралды 140 М.
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 52 МЛН
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 45 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 52 МЛН
Unreal Camera Manager EXPLAINED
10:55
The Game Dev Cave
Рет қаралды 3,6 М.
HTF do I? Change Cameras in Unreal Engine 4 Blueprints
11:01
Mathew Wadstein Tutorials
Рет қаралды 74 М.
Spectate Player System | Multiplayer - Unreal Engine Tutorial
13:51
6 Months Learning Unreal Engine - My Game Dev Journey
11:26
solomon gumball
Рет қаралды 147 М.
The Right Way to Spawn Objects in Unreal Engine | UE5
18:03
Ali Elzoheiry
Рет қаралды 18 М.
Why I'm ADDICTED To Filmmaking In Unreal Engine
8:02
Joshua M Kerr
Рет қаралды 350 М.
How to Transition the Camera when Interacting in Unreal Engine 5
9:51
How To Display 3D Meshes In Widgets - Unreal Engine 5 Tutorial
8:49
Unreal University
Рет қаралды 6 М.
Camera Switching Pitfalls and Methods! (Unreal 5) #UE5
6:11
Shaun Foster
Рет қаралды 19 М.
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 52 МЛН