Mercenary Camp
Mercenary Camp
  • 123
  • 2 571 639
Enemy NPC in multiplayer - [Fish-Net #21][Tutorial]
We create server side enemy, synchronize their movement and give them different patterns
[❗Priority support for Escape Game❗]
Priority support is offered on our discord channel.
It is available under the private channel #priority-support.
To be granted access, you either have to :
- Become a Twitch Subscriber (instant & automatic access upon linking twitch and discord)
- Redeem the 10,000 channel points reward "Access to ESCAPE discord channels" in twitch (free)
By watching the livestream, you will obtain channel points overtime. You will also have the chance to be granted a subscription by a generous contributor!
0:00 Intro
1:00 Enemy script
7:45 EnemyArea script
9:30 Back to Enemy.cs
19:25 NetworkTransform
20:00 Random enemy
26:00 Boomerang enemy
28:30 Idle enemy
29:28 Orbit enemy
**🔴Livestream alert**
I may be live on twitch, come hangout or ask questions!
► www.twitch.tv/n3rkmind
**More free tutorial series**
►🌐 Cross platform multiplayer standalone & web game
czcams.com/play/PLmcbjnHce7Scovukpm2UbvBmhPKvM52uD.html
►♟️ Learn how to make a Online Multiplayer Chess Game
czcams.com/video/FtGy7J8XD90/video.html
► ⚔️ FREE Top Down RPG Course:
czcams.com/video/b8YUfee_pzc/video.html
► 🔑 Authentication tutorial with NodeJS and MongoDB:
czcams.com/play/PLmcbjnHce7SeHv5lQle9rTFIJ1hs4hKOi.html
**🍺Spare pesos for a beer**
► Want to help the Mercenary Camp project? You can show your support with an membership!
czcams.com/channels/saXQNLxeHvwJdDUrICGufA.htmljoin
► Planning to buy from the asset store? use my link!
assetstore.unity.com/top-assets/top-download?aid=1011lK8L
**🫂Looking for human connection?**
► Join our community!
Discord 👊 discord.gg/eXnaSZw
Website 📡 merc.camp
Live 🔴www.twitch.tv/n3rkmind
👍 *If you enjoyed this video, don't forget to give it a thumbs up and share it with your friends!*
*Mercenary camp creates free educational content, and will continue to do so. I ask that you engage with the content through liking and sharing the videos if it helped you.*
#gamedev #multiplayer #crossplatform #unity #unityTutorial #n3k #epitome #mlapi #merc #merccamp #n3ken
zhlédnutí: 74

Video

Multiplayer collisions in physic scenes - [Fish-Net #20][Tutorial]
zhlédnutí 167Před 16 hodinami
We simulate physics in individual stacked room, enabling us to use colliders to kill, incapacitate or have the player win [❗Priority support for Escape Game❗] Priority support is offered on our discord channel. It is available under the private channel #priority-support. To be granted access, you either have to : - Become a Twitch Subscriber (instant & automatic access upon linking twitch and d...
Game flow in a multiplayer scene - [Fish-Net #19][Tutorial]
zhlédnutí 142Před 14 dny
We create a game state sync var that handles which state the game room is in right now, and mostly hook up a bunch of UI pieces to it! [❗Priority support for Escape Game❗] Priority support is offered on our discord channel. It is available under the private channel #priority-support. To be granted access, you either have to : - Become a Twitch Subscriber (instant & automatic access upon linking...
Movement prediction in multiplayer - [Fish-Net #18][Tutorial]
zhlédnutí 779Před 21 dnem
We create a movement script that will go through the movement prediction model V2 of fishnet, making the movement of your rat smooth to you, and the server [❗Priority support for Escape Game❗] Priority support is offered on our discord channel. It is available under the private channel #priority-support. To be granted access, you either have to : - Become a Twitch Subscriber (instant & automati...
Spawning players in a multiplayer scene - [Fish-Net #17][Tutorial]
zhlédnutí 272Před 28 dny
During this ep. we create and assign a player prefab to every joining clients so they can have their own rat! Amazing! [❗Priority support for Escape Game❗] Priority support is offered on our discord channel. It is available under the private channel #priority-support. To be granted access, you either have to : - Become a Twitch Subscriber (instant & automatic access upon linking twitch and disc...
Loading multiplayer game scenes - [Fish-Net #16][Tutorial]
zhlédnutí 334Před měsícem
We create the function that will handle the start of the game, send parameters from the lobby to the server, and then the server sends the scene to the room clients [❗Priority support for Escape Game❗] Priority support is offered on our discord channel. It is available under the private channel #priority-support. To be granted access, you either have to : - Become a Twitch Subscriber (instant &...
Dynamic room & player list, lobby and world - [Fish-Net #15][Tutorial]
zhlédnutí 325Před měsícem
We proceed to create rooms and dynamic UI showing those rooms, also dynamic player UI to see whos with us within said room [❗Priority support for Escape Game❗] Priority support is offered on our discord channel. It is available under the private channel #priority-support. To be granted access, you either have to : - Become a Twitch Subscriber (instant & automatic access upon linking twitch and ...
Creating rooms for our multiplayer groups [Fish-Net #14][Tutorial]
zhlédnutí 430Před měsícem
In this episode, we're creating rooms and exposing them to our clients! Big lobby episode [❗Priority support for Escape Game❗] Priority support is offered on our discord channel. It is available under the private channel #priority-support. To be granted access, you either have to : - Become a Twitch Subscriber (instant & automatic access upon linking twitch and discord) - Redeem the 10,000 chan...
Sign in - Multiplayer lobby [Fish-Net #13][Tutorial]
zhlédnutí 408Před měsícem
We lay down the flow for automatic sign in on startup [❗Priority support for Escape Game❗] Priority support is offered on our discord channel. It is available under the private channel #priority-support. To be granted access, you either have to : - Become a Twitch Subscriber (instant & automatic access upon linking twitch and discord) - Redeem the 10,000 channel points reward "Access to ESCAPE ...
Lobby and rooms in Multiplayer Fishnet [Fish-Net #12][Tutorial]
zhlédnutí 668Před 2 měsíci
We start diving into the lobby and rooms / worlds mechanic to ensure all different group of players can have their own instance and play only with their respective group on a single server [❗Priority support for Escape Game❗] Priority support is offered on our discord channel. It is available under the private channel #priority-support. To be granted access, you either have to : - Become a Twit...
Creating a multiplayer game with FishNet for WebGL & Standalone [Fish-Net #11][Tutorial]
zhlédnutí 509Před 2 měsíci
We upgrade fishnet, bayou, install URP, configure URP and download the premade assets to get started asap on the multiplayer code! Fishnet assetstore.unity.com/packages/tools/network/fish-net-networking-evolved-207815?aid=1011lK8L Bayou, the WebGL transport layer github.com/FirstGearGames/Bayou/ Our free assets, made with love n3k.itch.io/escape [❗Priority support for Escape Game❗] Priority sup...
Exposing our unity multiplayer game server using Docker [Fish-Net #10][Tutorial]
zhlédnutí 404Před 2 měsíci
[Multiplayer]🌐EP 10 - Exposing our Server in Docker compose! [Fish-Net] During this episode, we use Docker-compose to expose our backend build. We do this by using a Ubuntu image, and running the unity build headless in batch mode Docker-compose.yml content pastebin.com/z01tD4Kz [❗Priority support for Escape Game❗] Priority support is offered on our discord channel. It is available under the pr...
Publishing our WebGL game to the world! [Fish-Net #9][Tutorial]
zhlédnutí 283Před 3 měsíci
🌐EP 9 - Exposing our Client ! We create a docker-compose file meant to expose our WebGL build (previously transferred) to the whole world! Making it public and accessible to anyone on the planet with an Internet connection Docker-compose.yml file content pastebin.com/7tyZXDJL [❗Priority support for Escape Game❗] Priority support is offered on our discord channel. It is available under the priva...
Uploading Unity Game to WebGL [Fish-Net #8][Tutorial]
zhlédnutí 405Před 3 měsíci
🌐EP 8 - Transfering builds with one click ! We configure our unity builds in such a way that they will run on our linux machine. We then create a .bat file to one-click transfer our builds over to our remote machine. send_builds.bat begins here set "user=deploy@[YourDomain]" set "buildFolder=C:/Users/[Your user]/dev/escape-tutorial/builds" set "destinationPath=/home/deploy" scp -r %buildFolder%...
Installing a Traefik reverse proxy [Fish-Net #7][Tutorial]
zhlédnutí 557Před 3 měsíci
Installing a Traefik reverse proxy [Fish-Net #7][Tutorial]
Installing Docker & Docker-compose on Ubuntu [Fish-Net #6][Tutorial]
zhlédnutí 534Před 3 měsíci
Installing Docker & Docker-compose on Ubuntu [Fish-Net #6][Tutorial]
Digital Ocean virtual machine (Droplet) [Fish-Net #5][Tutorial]
zhlédnutí 404Před 4 měsíci
Digital Ocean virtual machine (Droplet) [Fish-Net #5][Tutorial]
Obtaining a domain [Fish-Net #4][Tutorial]
zhlédnutí 345Před 4 měsíci
Obtaining a domain [Fish-Net #4][Tutorial]
Unity 2024 WebGL(html5) & Standalone Builds [Fish-Net #3][Tutorial]
zhlédnutí 607Před 4 měsíci
Unity 2024 WebGL(html5) & Standalone Builds [Fish-Net #3][Tutorial]
Unity 2024 Cross platform support [Fish-Net #2][Tutorial]
zhlédnutí 650Před 4 měsíci
Unity 2024 Cross platform support [Fish-Net #2][Tutorial]
Unity 2024 Fish-Net configuration for multiplayer games [Fish-Net #1][Tutorial]
zhlédnutí 1,1KPřed 4 měsíci
Unity 2024 Fish-Net configuration for multiplayer games [Fish-Net #1][Tutorial]
2024 Unity x Fish-Net | Multiplayer cross platform Game Tutorial
zhlédnutí 1,4KPřed 4 měsíci
2024 Unity x Fish-Net | Multiplayer cross platform Game Tutorial
Fundamentals that you need to know (eventually) Hexadecimal & Binary
zhlédnutí 317Před 7 měsíci
Fundamentals that you need to know (eventually) Hexadecimal & Binary
Keep versions of your game with GIT - Beginner friendly
zhlédnutí 474Před 8 měsíci
Keep versions of your game with GIT - Beginner friendly
Tips to survive a Game Jam (LD54 Recap)
zhlédnutí 361Před 8 měsíci
Tips to survive a Game Jam (LD54 Recap)
Hello 🐶
zhlédnutí 1,2KPřed 8 měsíci
Hello 🐶
Moving players in 3D space [Tutorial][C#] - Unity Netcode for Gameobjects 2022
zhlédnutí 8KPřed 2 lety
Moving players in 3D space [Tutorial][C#] - Unity Netcode for Gameobjects 2022
Create a COMPLETE android & iOS game - FULL COURSE [Unity C#]
zhlédnutí 132KPřed 2 lety
Create a COMPLETE android & iOS game - FULL COURSE [Unity C#]
Build a working Login page with Unity, Node.js and Mongo - Security 3/3
zhlédnutí 9KPřed 2 lety
Build a working Login page with Unity, Node.js and Mongo - Security 3/3
Build a working Login page with Unity, Node.js and Mongo - Frontend 2/3
zhlédnutí 7KPřed 2 lety
Build a working Login page with Unity, Node.js and Mongo - Frontend 2/3

Komentáře

  • @oleksiinikonenko5266

    Many thanks to the author. Perhaps this is the only channel that produces guides on the fishnet multiplayer, thinking about the architecture of the project.

  • @utkarshjoshi
    @utkarshjoshi Před dnem

    what up with feed items , i think they dont vanish.. and and new item is added to the last child of feed item right? i want them to vanish and keep adding to the feed , like site popups Great video, thansk

  • @user-ng1xd5po1z
    @user-ng1xd5po1z Před dnem

    Hi Micheal, Quick question. 1) That demo scene you are using in this training where do we find it/how do we get it? 2) I just came across this training now, a bit late but still better than never, but how does one get on the live stream on twitch (I assume its done there) as checked your page but do not see nay link or direct reference to it? 3) You mention a pro version of fishnet but it is hard to find any subscription or way to gain Pro access do you have nay pointers on how to do that and what the cost involved actually is as cant really find any clear info on that. Thanks and d keep up the good work as we hope you make another updated dedicated server version of this particular training maybe this time using mirror or some other similar solution.

  • @alleyesonme1432
    @alleyesonme1432 Před 2 dny

    Thank you for fishnet tutoriials!

  • @alleyesonme1432
    @alleyesonme1432 Před 2 dny

    Thanks!

  • @nickmoore4578
    @nickmoore4578 Před 4 dny

    Ideas for future videos, add the played moves to the game screen, add a win lose tracking screen, add a username login screen to track players, I have a longer list of ideas whiteviperx#5930

  • @nickmoore4578
    @nickmoore4578 Před 4 dny

    Did I miss the video where you added the piece move list on the player screen?

  • @muhammadsaddamhussain1325

    2 videos are hidden or deleted.im following all videos,but in end 2 videos not found

  • @hggyuu
    @hggyuu Před 5 dny

    Are you available on play market, wanna play ur games?

  • @user-mi4yw1xw9s
    @user-mi4yw1xw9s Před 10 dny

    Just finished the project, following the tutorials was great, thanks for sharing! Regards!

  • @zoomer1865
    @zoomer1865 Před 15 dny

    Predicted Object is not required in V2 anymore. Also State Forwarding needs to be turned off.

  • @Traydydotcom
    @Traydydotcom Před 17 dny

    Very informative. Sub'd just because of this video, one of the best described on youtube. Thank you! Can't wait to check out your other video's!

  • @alleyesonme1432
    @alleyesonme1432 Před 18 dny

    Thanks a lot for Fish-Net tutorials!

  • @alleyesonme1432
    @alleyesonme1432 Před 18 dny

    Thanks a lot!

  • @alleyesonme1432
    @alleyesonme1432 Před 18 dny

    Thx again for tutorials!

  • @alleyesonme1432
    @alleyesonme1432 Před 18 dny

    Thank you for tutorials on Fish-Net!

  • @mindurownbussines
    @mindurownbussines Před 19 dny

    Hey There, Thank you for the tutorial series. I'm wondering if I go through the series will be I able to make fast paced shooter game with it ? I mean does the series cover lag compensation and hit registeration stuff ? I'm aware those features might not even be needed in the type of game you are making but I was just wondering will I get the base knowledge and capabilites with fishnet to do it after watching these series ?

  • @OniricChef
    @OniricChef Před 19 dny

    I'm quite a beginner with Unity, but why go through all the hassle of a billion URP settings and overrides, and not just change the material from code?

  • @utkarshjoshi
    @utkarshjoshi Před 19 dny

    are twitch streams ahead from this? can you please keep youtube update too? Thanks, following since the beginning

  • @ninjasalad6521
    @ninjasalad6521 Před 22 dny

    Around Interactive Objects and Inheritance section, when I play the game and move my player to the portal, the player doesn't teleport into the new scene, and my main camera is just stuck at Dungeon1 with no player in the center. I fixed the problem with just putting my player into prefab and add it into Dungeon1's scene. I'm curious about why my player isn't able to teleport into the new scene, but it works when I put another player into the the scene. Does this action conflict the program or code?

  • @utkarshjoshi
    @utkarshjoshi Před 22 dny

    Thanks!

  • @zoomer1865
    @zoomer1865 Před 23 dny

    Previous Bug was not fixed completely. ResetPlayerUI(); was not used on previous epesode at all. so here's how i did it. private void OnRoomDeleted(RoomHandler room) { RemoveRoomUI(room.name); ResetPlayerUI(); }

    • @zoomer1865
      @zoomer1865 Před 22 dny

      sorry my solution also had bug.. so final solve is kinda tricky. 1. remove my previous fix 2. put TargerResetUI(clientObject.Owner); inside RemoveFromRoom(), just before if (room.MembersObjects.Count == 0) 3. [TargetRpc] private void TargerResetUI(NetworkConnection conn) { Locator.GetService<LobbyHandler>().ResetPlayerUI(); } this will work fine as long as host doesnt leave own room. but if you want also host leave to work then either join own room if exist or make next member host then leave(i did that in my code).

  • @lucutes2936
    @lucutes2936 Před 23 dny

    bruh

  • @SamuraiGamer747
    @SamuraiGamer747 Před 24 dny

    my pieces are moving but not smoothly like shown in the video

  • @zoomer1865
    @zoomer1865 Před 26 dny

    There is another bug in lobbyscript . If you build a client and run server and client there and start a game, Editor client can not find the scene after sign in. so Error will show (SceneId of xxxxxxxx not found in SceneObjects).

    • @zoomer1865
      @zoomer1865 Před 23 dny

      Solve: I tried to find a proper solution for this but unable to do so when client is the host. Main logic here is we can not let server to change active scene. but we want client to change its active scene. so here is the solution if anyone is curious private void OnServerLoadEnd(SceneLoadEndEventArgs args) { previous code...... SceneLoadData sld = new SceneLoadData(args.LoadedScenes) { Options = new LoadOptions() { AllowStacking = true }, //PreferredActiveScene = new PreferredScene(new SceneLookupData(args.LoadedScenes[0])), }; } private void OnClientSceneState(ClientPresenceChangeEventArgs args) { NetworkConnection joinerConn = args.Connection; if (args.Scene == gameObject.scene) { SendRooms(joinerConn); return; } TarGetSetActiveScene(args.Connection, args.Scene.name); } [TargetRpc(ExcludeServer =true)] private void TarGetSetActiveScene(NetworkConnection conn,string sceneName) { UnityEngine.SceneManagement.SceneManager.SetActiveScene(UnityEngine.SceneManagement.SceneManager.GetSceneByName(sceneName)); }

  • @jasonwilliams8730
    @jasonwilliams8730 Před 27 dny

    👍

  • @zoomer1865
    @zoomer1865 Před 28 dny

    Been waiting for this since last week. I just Love this kind of teaching <3

  • @JohnnyCosinus
    @JohnnyCosinus Před měsícem

    for me save doesnt work, and after death game is bugging, please add codes in description so i can fix it

  • @zoomer1865
    @zoomer1865 Před měsícem

    btw Thanks a lot. I was waiting for this

  • @zoomer1865
    @zoomer1865 Před měsícem

    ok there is a issue here czcams.com/video/f7nylHjDdjc/video.html firstObject is a NetworkObject and TargetMemberStarted gets a List<NetworkObject> ..so it will through an error I fixed it like this for now. if (item.Owner != joinerConn) { List<NetworkObject> firstObjectToList = new List<NetworkObject>(); firstObjectToList.Add(firstObject); TargetMemberStarted(item.Owner, firstObjectToList); }

  • @DenysShust
    @DenysShust Před měsícem

    Amazing tutorial ❤

  • @19_vedantimungekar3
    @19_vedantimungekar3 Před měsícem

    for the problem at 16:00 the answe is (chessPieces[x, y].SetPosition(GetTileCenter(x,y),true); ) ( currentlyDragging.SetPosition(GetTileCenter(previousPosition.x, previousPosition.y),true);) ... the bool in the parameter should be true at both the places

  • @stankan2053
    @stankan2053 Před měsícem

    Please add a link to the code files.

  • @zoomer1865
    @zoomer1865 Před měsícem

    we are almost there. waiting for next part (hope it come soon). i am following your exact code and it is working great till now. Thanks a lot

  • @ZeeWolfed
    @ZeeWolfed Před měsícem

    great let's go for the serie

    • @N3KMercenaryCamp
      @N3KMercenaryCamp Před měsícem

      You picked a hard one, mais je crois en toi! @zeewolfed

    • @ZeeWolfed
      @ZeeWolfed Před měsícem

      @@N3KMercenaryCamp thanks 👍

  • @molsencanadian
    @molsencanadian Před měsícem

    Is this the pro version of FishNet?

  • @carloperilli5697
    @carloperilli5697 Před měsícem

    you’ll make history

  • @carloperilli5697
    @carloperilli5697 Před měsícem

    sheeeesh man

  • @bano_mavisx
    @bano_mavisx Před měsícem

    I did but it didn't work, maybe I can see startup script file sir

  • @coderavage
    @coderavage Před měsícem

    can i follow the tutorial to make this game for android ?

  • @QbusieQ_PL
    @QbusieQ_PL Před měsícem

    for people who cant get the hover function to work just copy my void update section, no need to thank me ;).......: private void Update() { if (!currentCamera) { currentCamera = Camera.main; return; } RaycastHit info; Ray ray = currentCamera.ScreenPointToRay(Input.mousePosition); if (Physics.Raycast(ray, out info, 100, LayerMask.GetMask("Tile", "Hover"))) { // Get the indexes of the tile I've hit Vector2Int hitPosition = LookupTileIndex(info.transform.gameObject); // If we're hovering a tile after not hovering any tiles if (currentHover != hitPosition) { // Remove hover effect from the previous tile if (currentHover != -Vector2Int.one) { tiles[currentHover.x, currentHover.y].layer = LayerMask.NameToLayer("Tile"); } // Apply hover effect to the current tile currentHover = hitPosition; tiles[hitPosition.x, hitPosition.y].layer = LayerMask.NameToLayer("Hover"); } } else { // If not hovering over any tile, remove hover effect if (currentHover != -Vector2Int.one) { tiles[currentHover.x, currentHover.y].layer = LayerMask.NameToLayer("Tile"); currentHover = -Vector2Int.one; } } }

    • @spyco6559
      @spyco6559 Před 10 dny

      THANK YOU! My hover function kept flashing on and off for no reason. This fixed it

  • @varunkushwah451
    @varunkushwah451 Před měsícem

    Thanks

  • @unnamed20029
    @unnamed20029 Před měsícem

    why are we creating triangles?

  • @Peakaso
    @Peakaso Před měsícem

    This dude is pretty cool!

  • @zoomer1865
    @zoomer1865 Před měsícem

    This was great.. waiting for next part. Also please create a playlist for Fishnet contents, Thanks

    • @N3KMercenaryCamp
      @N3KMercenaryCamp Před měsícem

      Hey zoomer! You should be able to find the playlist link in the description :D

  • @neckkeys5251
    @neckkeys5251 Před měsícem

    Dude, keep going, your videos are amazing. Finally, the multiplayer mystery is no longer one. Additionally, the Linux server and docker tutorials in previous videos of this list are a gem.

    • @N3KMercenaryCamp
      @N3KMercenaryCamp Před měsícem

      This is why i do it! Thanks for the support on all the platforms @neckkeys <3

  • @alleyesonme1432
    @alleyesonme1432 Před měsícem

    Thx for Fishnet tutorials!

  • @alleyesonme1432
    @alleyesonme1432 Před měsícem

    Thx for videos!

  • @alleyesonme1432
    @alleyesonme1432 Před měsícem

    Thanks!

  • @alleyesonme1432
    @alleyesonme1432 Před měsícem

    Thank you for Fishnet tutorials!