Create ELDEN RING in Unity ► EP. 3 Character Movement

preview_player
Показать описание
In this video we write the functionality to move and rotate our character. We sync our movement across the network, so other players in our game will see both our new position and rotation.

► GET MY GAME ON STEAM

► JOIN OUR DISCORD

► SUPPORT ME ON PATREON!

► ASSET STORE PAGE (Animations & Models)

► FOLLOW ME IN INSTAGRAM!

► EPISODE 4
Рекомендации по теме
Комментарии
Автор

Hey guys! Apologies for the low frame rate in the game view window in some of the clips, my rendering software was not being so agreeable with some of the recording on the final render.

SebastianGraves
Автор

I have been watching unity tutorials for years now but none of them improved me as your tutorials and I'm only 3 episodes in your series lol. Your tutorials opened a new portal for me. Cant thank you enough for it

cryptmhg
Автор

Amazing video as always! :) Here are a few things I feel could be improved:
1) It makes more sense to first execute moveDirection.y = 0; and then normalize, since only this will give us a normalized vector in the XZ-plane. (The same applies to the targetRotation)
2) Imho it is best practice to use PascalCase for public fields and properties for better distinction, using { get; private set; } for singleton declarations is good practice too
3) (Micro-Optimization) It is faster to calculate speed * deltaTime * moveDirection (float*float, float*Vector3) instead of moveDirection * speed * deltaTime (Vector3*float, Vector3*float)
Keep it up! <3

sorokan
Автор

If you are throwing a null exception setting a NetworkVariable, make sure you are inheriting from the NetworkBehavior class on your network manager.

As always, thanks for another great vid. I'd love to watch some videos discussing these topics at a higher level if you've ever considered making them.

johnheggelund
Автор

Awesome as always, I noticed when I started up was getting a message saying you've got two listeners, just delete the camera from the Scene_world as you bring the Player Camera (this is where the listener is attached) in on loading in. Only a small note just in case anyone sees this. Thanks my man!

roblatham
Автор

yay, this one was a wow for me!
i've been using unity for a few years but I never made a multiplayer game so thi is new to me.
What helped me understand the network and the owner thing is the following:
if im on my session controlling the player, i need to give my player position to the network object,
if its my player but not my session it means that i need to take the position from the network object and give to my player.
hope that helped! see you in episode 4!

RaonCreate
Автор

After much debugging (accidental typos, assigning stuff properly, etc) I have conquered this task, and it feels great! :)
Thanks for this awesome learning resource Sebastian, I feel like I'm understanding and learning a lot faster than I was with Microgames

clankcrimson
Автор

Great tutorials so far! May the algorithm ever be in your favor.

wolfgangsven
Автор

I am the type of person who doesn't make games and just enjoy watching one being made.

davidnaneishvili
Автор

Thank you so much for this series and the last. I am very new to Unity and although it's hard to keep up sometimes, I feel like I'm learning a lot. I'm looking forward to future installments!

alexjohnson
Автор

Thank you for another great video.

I had a few issues which I was able to fix:

1) If the character doesn't stop moving, go back to InputActions and set the move action to "Pass Through" instead of "Value".
2) If you get a null reference exception related to PlayerInputManager, you need to add that script to your player.

flashheart
Автор

Hopefully this blows up! more people need to see this.

lazyreader
Автор

Wow, exemplary presentation. I'm just learning C# and your series is inspiring me to keep pushing the boulder up the hill. Then watch it roll down again when my code fails. Then try again from the beginning. Thank you. Love your tutorials and respect your knowledge. Nice tats too Ian...um. I mean Sebastian.

joshuabydairk
Автор

Loving it! I started your Dark Souls series back when you started but couldn't keep up due to life chaos! So very happy to be able to start the new and improved series! You're awesome! :)

zaiphod
Автор

There's so much to digest!! I'm really thankful to have this free course!

This is plenty alot, and can help me in my dev journey!
I'll pay back when I get better at this :DD

I'm stopping till ep.5 to digest all of it before I go further

khesirdev
Автор

Thanks. Awesome tutorial, got me to finally understand how networking (host/client) works. Btw, when modifying preabs you can just go to the prefab's inspector --> overrides --> apply all.

dpradell_dev
Автор

Hey, I'm honestly just amazed at how perfect this tutorial is. I've been clicking through several tutorials over the last few weeks, but nowhere have I had that real "click" moment that I just understood what was happening in front of me.

Here that is the case. The detail with which the design patterns, methods, the structure, the integration into Unity, simply everything is explained is really - and I'm not exaggerating - perfect. Through the explanations I recognize some familiar concepts from web development and suddenly I feel much more familiar with Unity and know how I could implement something.

Thank you very much and please keep up the great content!

agonyzx
Автор

I followed you ds in unity for a bit to understand ds movement better and now im watching this to really grasp net code because i am intimidated by it. So big thank you to you cuz I would have never been able to learn how it plays into systems until now.

inverseshadow
Автор

God Send, hope you never stop making videos like these

OfficalLawDawe
Автор

I have been fighting with NullReferenceException: Object reference not set to an instance of an object for the past hour. It has to do with the 2 lines that set the transform for the player's owner. The comments I see that try to resolve this issue basically cause the 2 lines to be skipped. I have tried different versions of netcode for gameObjects and none have solved the issue. One thing I have noticed is in the inspector under the Player Network Manager Script the two variables are labeled as "Type not renderable" but I don't know if thats the issue.

seig