Тёмный

Godot 4 Multiplayer: Sync 3D Player Movement, Rotation, and Animation 

Battery Acid Dev
Подписаться 6 тыс.
Просмотров 6 тыс.
50% 1

A continuation off the last Godot 4 multiplayer video, where we add in support for synching player rotation from camera input, along with their current animation.
[Looking for the code?]
👉 / batteryaciddev
[Previous video on player spawn and sync] • Godot 4 Multiplayer: S...
Resources:
[Spawn + Sync blog] godotengine.or...
[Godot Docs] docs.godotengi...
👋 Let's talk shop 👇
[Helpful Unity Networking Assets] prf.hn/l/n0bZqOe
[Discord] / discord
[Twitter] / batteryaciddev
[Support the channel] www.getyourgam...
#godot #gametech #gamedev #indiedev #multiplayer #network #animation #rotation #camera #godotengine #3Dplayer

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 40   
@BatteryAcidDev
@BatteryAcidDev 5 месяцев назад
*Full code example* www.patreon.com/BatteryAcidDev ----------------------------------------------------------------------------------------------------- *Discord* discord.gg/SFFW32FUgm *X (Twitter)* twitter.com/BatteryAcidDev *Mastodon* mastodon.gamedev.place/@BatteryAcidDev *Instagram* instagram.com/batteryaciddev *Threads* www.threads.net/@batteryaciddev
@BatteryAcidDev
@BatteryAcidDev 10 месяцев назад
⭐The jump logic needs a good refactor! Like this comment if you’d like to see a follow up with a better jump implementation, and maybe strafing.😅 🚨Also Correction: Fix to the player_input run line, change it to this: "if input_motion. length() > 0 && Input. is_action_pressed ("run"):", makes sure they only run when moving, not just when holding shift, unless you want that 😅
@BatteryAcidDev
@BatteryAcidDev 5 месяцев назад
For updated jump logic, you can grab my latest project here: www.patreon.com/posts/ray-cast-bullet-100314547?Link& ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-fI9Wy-3BU0g.html
@thalesr6916
@thalesr6916 10 месяцев назад
Best godot channel right now! This series is basically a detailed course about multiplayer in godot and thats why it is so good. I'm learning a lot of interesting stuff Thanks!
@BatteryAcidDev
@BatteryAcidDev 10 месяцев назад
Thank you! I'm learning a lot along the way too! Let me know if there's anything specific you want to see
@trvlonesurvivr3751
@trvlonesurvivr3751 9 месяцев назад
​@@BatteryAcidDevWhere are those unity multiplayer NGO tutorial series?
@BatteryAcidDev
@BatteryAcidDev 9 месяцев назад
You mean these? ru-vid.com/group/PLOtt3_R1rR9U1TA5dYcFAELOUsLgoJiQS All the basics should be covered there, expect maybe animation sync. Let me know if there's something in particular you're looking for!
@bennicus4901
@bennicus4901 5 месяцев назад
You can save some replication and some work on the server by doing the camera calculations locally on the client - the client would take its inputs and transform them into a movement direction using its local camera state, and send *that* to the server. The server would still do the actual movement, but using a direction calculated by the client. Of course the client could fake a camera direction and try to send the character in some weird direction (through the floor or into space or something) but the server could sanitize the movement direction before applying it. (zero out any vertical element or whatever makes sense for your game)
@BatteryAcidDev
@BatteryAcidDev 5 месяцев назад
Yea I think anything you can move to the client without risking the server's authority over critical gameplay elements, should be a sought after improvement! Thanks for sharing!
@brentonblair5219
@brentonblair5219 8 месяцев назад
Amazing channel and great tutorial. You are carrying me through my godot learning journey! Slight programmer nitpick. The if/else for running is completely unnecessary. You just need to do "running = Input.is_action_pressed("running")" :)
@BatteryAcidDev
@BatteryAcidDev 8 месяцев назад
Thank you! Yea not sure why I was doing that lol, good catch!
@paulcallaghan3544
@paulcallaghan3544 2 месяца назад
Love these videos, learning so much. Can I ask what keyboard your using? It sounds nice
@BatteryAcidDev
@BatteryAcidDev 2 месяца назад
Thanks! Just a plain ole mac keyboard
@santiagogonzalezmontoya5370
@santiagogonzalezmontoya5370 10 месяцев назад
You are awesome, you. Have a new loyal follower. Thanks a lot !
@BatteryAcidDev
@BatteryAcidDev 10 месяцев назад
I appreciate it! Thank you!
@Karsteski
@Karsteski 9 месяцев назад
Great informative video, thank you so much.
@BatteryAcidDev
@BatteryAcidDev 9 месяцев назад
Glad it helped!
@antivirusjrelax9155
@antivirusjrelax9155 7 месяцев назад
14:47 instead of oppening another script every time to get func name, you could rewrite in your player script this: @onready var player_input := $PlayerInput as PlayerInput And in PlayerInput script after "extends MultiplayerSynchronizer" below add "class_name PlayerInput" After that, hints would always be shown in the player script 😁
@BatteryAcidDev
@BatteryAcidDev 7 месяцев назад
Thanks! I'll try that out, I've been struggling with that for some time, hopefully this will resolve it!
@futursoup9007
@futursoup9007 9 месяцев назад
thank you sir 👌👌
@owenlloyd2528
@owenlloyd2528 9 месяцев назад
Thank you
@973sandman
@973sandman 9 месяцев назад
Bravo 👏Great tutorial and enjoyable edit for a complex topic. Do you plan to make one showing how to handle lot of bullets and hit boxes with authoritative server?
@BatteryAcidDev
@BatteryAcidDev 9 месяцев назад
Thank you! Glad you enjoyed it. I do have plans to show that functionality, but it may be a few weeks until it's ready... got to get through the next series first!
@Andserk
@Andserk 7 месяцев назад
I thought movement was dictated by the animations in root motion, to prevent sliding and stuff. is root motion not the way for multiplayer games? I'm still learning so I apologize if I'm wrong. great videos btw, keep up the good work!
@BatteryAcidDev
@BatteryAcidDev 7 месяцев назад
You can use root motion or regular velocity based movement for multiplayer games. Root motion tends to look more realistic as the steps can match the movement against the ground and may look better in cut scenes because you’re trying to prevent “sliding”, like you said. It’s all about your game’s requirements. docs.godotengine.org/en/stable/classes/class_rootmotionview.html
@Andserk
@Andserk 7 месяцев назад
​@@BatteryAcidDevI see! but why is there forward sliding at the end? is there no constraint of velocity with root motion? in my head I imagined root motion matching the animation speed to the velocity of the character.
@BatteryAcidDev
@BatteryAcidDev 7 месяцев назад
Yea I think you can make adjustments to velocity to clamp movement as necessary. Best way to get a better idea is to make a small demo for yourself to see if it works as needed.
@Andserk
@Andserk 7 месяцев назад
@@BatteryAcidDev Will do! I'm also thinking the terrain resolution may be giving that illusion of speed, so I'll test with a grid texture. sorry for the battery of newbie questions lol, thanks again! looking forward to see more godot tutorials, they are very informative!
@BatteryAcidDev
@BatteryAcidDev 7 месяцев назад
No worries, we're all learning! Thanks!@@Andserk
@Kagekao_666
@Kagekao_666 9 месяцев назад
I can’t wait for you to start making DBMS tutorials PostgreSQL
@BatteryAcidDev
@BatteryAcidDev 9 месяцев назад
Better be subscribed so you don’t miss it! 🤣
@agriasoaks6721
@agriasoaks6721 10 месяцев назад
Sensei, will you be covering Lobby, where people can join to fight a certain level together?
@BatteryAcidDev
@BatteryAcidDev 10 месяцев назад
This was coming up in the queue, but I was going to implement the backend part using AWS Lambda. Let me know what you think!
@agriasoaks6721
@agriasoaks6721 10 месяцев назад
@@BatteryAcidDev Sounds great! It's good to have Godot Channel that oriented in multi-player
@hellowin.cavemen
@hellowin.cavemen 8 месяцев назад
I'm developing multiplayer game and using GUT for unit testing. Is there any tutorial to test multiplayer connection using GUT? What I'm expecting is we can do spawn more than 1 game, test its MultiplayerPeer for 2 or more players. Thank you in advance 🙏
@BatteryAcidDev
@BatteryAcidDev 8 месяцев назад
Not sure... maybe you can spawn them from the code? Let me know if you find anything!
@pakehvideos
@pakehvideos 6 месяцев назад
Which version is this? 4.0, 4.1, 4.2, etc
@BatteryAcidDev
@BatteryAcidDev 6 месяцев назад
This was built with 4.2 but should with with 4.0 and up
@radthadd
@radthadd 7 месяцев назад
Ok so I have a child rig for gender now what?
@BatteryAcidDev
@BatteryAcidDev 7 месяцев назад
Not sure, you tell me?
Далее
Modus males sekolah
00:14
Просмотров 11 млн
I'm Starting a [Godot 4] 3D Multiplayer Game!
11:38
Просмотров 3,1 тыс.
Why I Chose Godot (and why I almost quit)
3:22
Просмотров 107 тыс.
Godot 4 - Steam Multiplayer Mini Game
1:23
Просмотров 1,6 тыс.
Godot 4 Ledge Climbing tutorial
7:23
Просмотров 11 тыс.
Godot 4 Multiplayer Chat
6:28
Просмотров 8 тыс.
Why Making Multiplayer Games SUCKS
6:46
Просмотров 421 тыс.
The Internet Played My Game (and it did not go well)
9:27
Can I Create Video Games Using SQL? (No Game Engine)
20:58