UE4 - Tutorial - Local Multiplayer Pt 4 - Shared Camera Pt 2 - UE4 / Unreal Engine 4

  Рет қаралды 7,664

Dev Enabled

Dev Enabled

Күн бұрын

Пікірлер: 35
@DevEnabled
@DevEnabled 3 жыл бұрын
Get my new UE4 Beginners course: devenabled.teachable.com/p/intro-to-ue4/ Beginner course now available on Udemy: www.udemy.com/course/unreal-engine-4-ue4-complete-beginners-course/?referralCode=FB8E232D20F4A087F6D5
@App-Tips
@App-Tips 6 ай бұрын
Thank you for these series, you explained everything in a clear and professional way. There's one more functionality I think that woud be worth to add to a local multiplayer, a feature that could keep the players characters movement restricted to the camera bounds as we see in some cooperative games. Again, thanks for sharing.
@IrocZIV
@IrocZIV 2 жыл бұрын
Continuing from the last lesson where I made separate classes for my characters. In order to get The camera to properly track I needed to get my 'Active Player' array a bit differently than what was shown at 3:00 In the GameMode class I ended up creating an array based off of output of the SpawnActorBPInputReceiver. I then Cast the GameMode into Camera and grabbed the array, and plugged that into the GetActorArrayAverageLocation node. Again, not sure If its the best way, but it does seem to be working. EDIT: I could not get the parent class to my 'Characters' to get the correct 'PlayerController' using any of the indexes created. I ended up going into the 'Controller' blueprint, using an 'Interface' to pass a reference of itself through a 'ControlledPawn' node over to the 'Character' blueprint. There might be a more efficient way to do this, but this is the best I could come up with, with my limited knowledge.
@btv8844
@btv8844 3 жыл бұрын
can you continue the series please ? :'c
@JoanPlanas
@JoanPlanas 2 жыл бұрын
Thank You for your amazing tutorials!
@skalibercaelesti
@skalibercaelesti Жыл бұрын
Thank you so much! This works great
@anonymitymatt1721
@anonymitymatt1721 5 күн бұрын
I have a problem with the Update Spring Arm Function at 13:44 The function works and tracks the players as it should, but my game in the style of gangbeasts has players fight, when their HP gets low they die. If Player 1 dies the shared camera completely breaks and the message log is filled with errors to do with Player 1's character instance and adding the distance to the array. If Player 2, 3 or 4 dies, the camera works as instead of focuses on the rest of the players. Do you know why that issue is being caused and what would work to solve it? Thanks
@Sludj
@Sludj 3 жыл бұрын
Thanks for this series. I particularly like your use of Interfaces! Been using Unreal for years now, and I never knew about setting the bool output in an interface in order to have it treated like a normal function within a BP. Or, if I did know that once upon a time, I'd since forgotten :) Also, not very important, but there is a "Last Index" getter you can drag off an array, rather than doing "Length - 1".
@DevEnabled
@DevEnabled 3 жыл бұрын
Thank you, much appreciated. It's a shame that interfaces don't get the attention they deserve. I think at first glance they look like they don't really do much different to just casting and take longer to use. Great to hear I reminded you of the bool feature, funnily enough, I think I knew about the LastIndex call and similarly just forget to use it. I'll definitely need to condition myself back into using that rather than -1.
@KavanBahrami
@KavanBahrami 3 жыл бұрын
Hi, you mentioned taking on a networked tutorial at the start of this series, is this something you still plan on doing?
@lewismurphy1562
@lewismurphy1562 2 жыл бұрын
Instead of basing the camera movement on tick or a timer, I'd opt for updating it's position whenever a character moves in game. Could use an "On Character Movement Updated" binding event which comes with the character class.
@jol0973
@jol0973 3 жыл бұрын
Thank you for your great tutorials. I'm using a twin stick controller, and the right analog will control the rotation of the character. No problem with each player if I always spawn as Player Zero, but can't rotate either player if I don't. What should I use as the reference for 'Get Thumbstick Aim Direction'- target BP_Player?
@Joshuahendrix
@Joshuahendrix 3 жыл бұрын
Thank you, great work!
@DevEnabled
@DevEnabled 3 жыл бұрын
Thank you too!
@BHumanist
@BHumanist 2 жыл бұрын
How would you implement the spawning of the newly added local characters and camera in a new gamemode so that you can carry them through when switching levels?
@Munze93
@Munze93 3 жыл бұрын
Hello thanks for the awesome Tutorial :) I have a question which hasnt been asked yet: So i am developing a car race game with 4 players. I have a shared camera setup as you have showed. Now my question would be how i am able to set up the shared camera to follow allways the cars from behind (when turning into corners the camera should still be behind the cars). It would be great if you could help out. Thanks & regards
@anonymousphantom4916
@anonymousphantom4916 3 жыл бұрын
Just wondering, how would you set up health for the players, I made a health and stamina bar and did all the functions for that but it only works on the first player. Thank you and love your tutorials. :)
@СергейКомаров-с4б
@СергейКомаров-с4б Жыл бұрын
Be kind. Please tell me. I'm doing multiplayer based on your lesson. For some reason, when you start the game, an extra player is created, which is why even with one player, the screen is divided into two parts. Where there may be an error.
@aknightly393
@aknightly393 3 жыл бұрын
I recently asked this on your old channel (I've just recently started my own game project and found your tutorials along the way so.. Hello :D ) Would you do the same as this when making a shared screen online multiplayer game instead of local, the game idea I have is similar to speed runners only 2.5D (I think that's what it's called, like above the players but at an angle) and would like a mechanic where the player in last place in the race if they 'fall out' of the screen/camera view they would die until their is one player left who is the victor (point system with rounds) basically Micro Machines with a different theme if that helps. :)
@mikis89
@mikis89 3 жыл бұрын
Instasub, great work! Is there a way to have the camera follow the player in single mode, if possible at all with this setup? Where should i start messing things up?
@mikis89
@mikis89 3 жыл бұрын
Never mind, sorted it out and managed to have it work automatically. I'm new to ue and i've never seen using interfaces like this before, had to rewatch the tutorial here and there to understand it better. Thanks again.
@DevEnabled
@DevEnabled 3 жыл бұрын
For the camera on a single player you can usually just stick with a spring arm directly in the class would be the usual basic approach.
@DevEnabled
@DevEnabled 3 жыл бұрын
That's understandable, interfaces can throw off people new to the system but they're incredibly useful when you get familiar with implementing into your pipeline so I try to cover their use where possible.
@RaedAbbas
@RaedAbbas 3 жыл бұрын
YEEES!! Finally we are here. I've been waiting for this video. Just a suggestion, would be great to learn how to prevent characters from going outside the camera boundaries. I used hidden walls which follow camera but I don't think that solution is good enough! How would you go about it?
@DevEnabled
@DevEnabled 3 жыл бұрын
Thanks, the hidden walls sound like a fairly standard approach. I've never done it in Unreal but in Unity I've done things like checking the screen/camera boundaries and slowing or stopping the player if they start nearing them. I'm almost certain Unreal will have similar functions you can check if not then it's definitely something you could implement.
@RaedAbbas
@RaedAbbas 3 жыл бұрын
@@DevEnabled Very interesting. It's time for some research then, screen boundry!
@novaria
@novaria 3 жыл бұрын
It would have been cool to see how to use PlayerState and have a shared widget that shows a healthbar per player and maybe individual scores
@MrReZenT
@MrReZenT 3 жыл бұрын
Thank you for your amazing tutorials! I am creating a side scrolling game and when my characters move away from each other the camera does not zoom in and out. I can't figure out what I need to change to get it working. If you could help I would really appreciate it. Thanks again! EDIT: Figured it out after some debugging... Connected to wrong loop completed SMH. Thank you once more!!
@Akiraa20
@Akiraa20 3 жыл бұрын
Odd question but if you wanted each player to score points by collecting things like coins, how would you make it so it stores each players coins separately and then display this on screen via a Widget?
@DevEnabled
@DevEnabled 3 жыл бұрын
I've covered everything you need here. It would just be an alteration of each player controlling their individual character/colour choice which is being communicated and updated to the UI.
@Akiraa20
@Akiraa20 3 жыл бұрын
@@DevEnabled Hey, I feel like I am being stupid but not entirely sure what you mean
@burger2034
@burger2034 3 жыл бұрын
hello . Can you please make a tutorial about how a vase can break into small pices only if it falls from a specific high and then destroy . It will be very helpful , I will bring you subscribers and likes . Thanks !
@rofdo1489
@rofdo1489 3 жыл бұрын
Second comment!!!
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Blueprint Macros Beginner Tutorial Unreal Engine
6:08
Chankulovski
Рет қаралды 156
Unreal Engine AI with Behavior Trees | Unreal Engine
26:38
Unreal Engine
Рет қаралды 365 М.
Unreal Engine 5 Blueprint Beginner Tutorial Part 1
1:19:59
Morethanjustagame
Рет қаралды 841
Unreal Engine - Multiplayer System in 12 Minutes - UE4
13:42
Dev Enabled
Рет қаралды 141 М.