Пікірлер
@lutogg8732
@lutogg8732 14 сағат бұрын
Hello, could you give me the code, good video and game
@rootbindev
@rootbindev 11 сағат бұрын
yes in discord
@lutogg8732
@lutogg8732 10 сағат бұрын
@@rootbindev thanks
@Cheburek_prod
@Cheburek_prod 19 сағат бұрын
I have error ("Set Destination work only with active nav mesh agent").
@_DarkMoves
@_DarkMoves 5 күн бұрын
I tried this but sadly it does not work, I copied exactly everything you did to no avail... according to forums it's either because the server takes too long to connect to the relay so it times out, or because of some host being its own client (although i think that was another issue). When I execute my 2 builds and Host on one, it starts the server and generates the code, but if I try to join it either never joins and if I try again it says "instance already running", or it times out with a "httpexception 404 not found"
@rootbindev
@rootbindev 4 күн бұрын
thats weird! when you get instance already running its usually because you already hosted the game on another instance
@_DarkMoves
@_DarkMoves 5 күн бұрын
quality content, i subbed!
@rootbindev
@rootbindev 4 күн бұрын
thank you!
@sobean7699
@sobean7699 6 күн бұрын
Can you make the enemies rotate towards the player without them going weirdly into 3d shapes to turn towards them?
@rootbindev
@rootbindev 5 күн бұрын
Yes
@sobean7699
@sobean7699 5 күн бұрын
@@rootbindev Can you explain how please, I tried to get rid of the false rotate thing in the code like you did in the video and that made my shapes go weirdly 3d as they tried to turn towards me, id like them to only rotate on the x and y axis i guess
@rootbindev
@rootbindev 5 күн бұрын
@@sobean7699 It will be hard to explain it in the comment section, but if you join the discord I can try to help!
@pietrosprudente
@pietrosprudente 7 күн бұрын
Thanks! This is very useful for people who are in a hurray, like a gamejam, or don't wanna watch Code Monkey's 1 hour video for the 50th time!
@Sharmiyt_
@Sharmiyt_ 7 күн бұрын
Can it be playable in Wi-Fi or Internet ?…
@rootbindev
@rootbindev 6 күн бұрын
Yes it can!
@Sharmiyt_
@Sharmiyt_ 6 күн бұрын
@@rootbindev Wi-Fi tutorial !…….
@rootbindev
@rootbindev 6 күн бұрын
@@Sharmiyt_ watch my Relay tutorial and you will be able to play over the internet
@luciusrex
@luciusrex 7 күн бұрын
nice quick easy. love it subd
@rootbindev
@rootbindev 7 күн бұрын
@@luciusrex Thank you very much
@personhurter
@personhurter 8 күн бұрын
Very helpful!
@rootbindev
@rootbindev 8 күн бұрын
thank you!
@personhurter
@personhurter 8 күн бұрын
@@rootbindev you’re welcome! I actually need help with figuring out lobby based relay servers. Have you done that?
@rebeccaacheampong7239
@rebeccaacheampong7239 11 күн бұрын
Great video. Thank you. I just subscribed
@amywang8711
@amywang8711 14 күн бұрын
Would highly appreciate your affort
@dertobbe1176
@dertobbe1176 16 күн бұрын
I agree with the others here. Pls do a tutorial on multiplayer. Just detailed enough to reproduce the Base Concept. I started learning c # last year and I am far away from doing multiplayer stuff. Would highly appreciate your affort 🙏
@rootbindev
@rootbindev 15 күн бұрын
Thank you i might do that soon!
@dertobbe1176
@dertobbe1176 15 күн бұрын
@@rootbindev thank you my mate 👌
@z2six
@z2six 18 күн бұрын
why not just use the AI Navigation package by Unity...? can you make a tut for that pls?
@rootbindev
@rootbindev 18 күн бұрын
@@z2six because it doesnt support 2D navigation, only 3D
@z2six
@z2six 18 күн бұрын
@@rootbindev Aaah okay, gotya. Thanks for the response
@OfficialDrewStevens
@OfficialDrewStevens 19 күн бұрын
Joined your discord for some help but had no luck on getting a reply. Is there a better way I can message you for some help with the code? I copied the code exactly the way you have, but it shows errors.
@rootbindev
@rootbindev 19 күн бұрын
hello! sorry I will check it now
@TheStickpivotanimati
@TheStickpivotanimati 22 күн бұрын
You saved my life!!! It was just a matter of using squares... the Tilemap wasn't necessary like in other tutorials. Thanks.
@testfseeh191
@testfseeh191 24 күн бұрын
Why does the other player appear to not be moving when they are actually moving?
@rootbindev
@rootbindev 23 күн бұрын
Because the network objects need a networkTransform to sync their positions, and this tutorial was not about that :) I have a "Unity Multiplayer in 3 minutes" video where that is explained
@testfseeh191
@testfseeh191 23 күн бұрын
@@rootbindev Thank you. I suggest that the next video be about how to use 'Relay' with 'Lobby'. 👨‍🦯 I apologize for the inconvenience.
@mohammedelwardighi9426
@mohammedelwardighi9426 24 күн бұрын
Hi, I've completed this section, but it's only for local multiplayer. Could you help convert it to online multiplayer, not local?
@rootbindev
@rootbindev 24 күн бұрын
yes I can! either you can join my discord where I can help you, or you can watch my latest video about Unity Relay :)
@azureusneufcinq2883
@azureusneufcinq2883 28 күн бұрын
Hello, I love your content, can you make a video on how to spawn enemy based on wave ?
@rootbindev
@rootbindev 28 күн бұрын
thank you very much! yes, that is a good idea, I might do that for my next video!
@anurag9314
@anurag9314 29 күн бұрын
Hi, is there a way to use MLAgents to figure out the path using Reinforcement Learning as well?
@rootbindev
@rootbindev 29 күн бұрын
Hello! Unfortunately, I don't know.
@leosh9026
@leosh9026 Ай бұрын
Keep it up! Keep it up!
@rootbindev
@rootbindev Ай бұрын
Thank's for your support!
@gamheroes
@gamheroes Ай бұрын
Thanks for sharing!
@rootbindev
@rootbindev Ай бұрын
Thank you for watching!
@pilottim136
@pilottim136 Ай бұрын
but what if the destination is the player and the player has to move alot?
@rootbindev
@rootbindev Ай бұрын
That is no problem
@pilottim136
@pilottim136 Ай бұрын
@@rootbindev okay thanks! (but is there a way to make them NOT slow down on the corners? because that would be quite useful for a game that i want to make)
@pilottim136
@pilottim136 Ай бұрын
question about this one: does it cost? (dumb question, but does it?)
@rootbindev
@rootbindev Ай бұрын
They have a free tier, so it's free until you have alot of players playing the game
@rootbindev
@rootbindev Ай бұрын
unity.com/products/gaming-services/pricing
@Sharmiyt_
@Sharmiyt_ 7 күн бұрын
How long ? If 1 Lack players ? Or added network DATA TRANSMISSION if I use audio and save and load Data ?. If free trial over then how much the cost of average ?… $?…..
@pilottim136
@pilottim136 7 күн бұрын
@@Sharmiyt_ idk
@pilottim136
@pilottim136 Ай бұрын
Other comment from me again; I just looked at your profile, and noticed you did tutorials that I will need for my future projects! (I have subscribed! Thank you!!!)
@rootbindev
@rootbindev Ай бұрын
thank you very much!
@pilottim136
@pilottim136 Ай бұрын
thats cool! but do you need to share your IP for that? looks like you do?
@rootbindev
@rootbindev Ай бұрын
You don't have to share IP address, check out my latest video where I explain how you can use Relay instead :)
@pilottim136
@pilottim136 Ай бұрын
@@rootbindev then new question (if you know the answer) Can i have more players online at the same time than with pun2 (free)?
@DapperNurd
@DapperNurd Ай бұрын
No area is baked when I select bake. I can't find anyone else with this problem. It's not my gizmos, it just doesn't work.
@rootbindev
@rootbindev Ай бұрын
im sorry to hear that! which version of unity do you use?
@mattrobb3566
@mattrobb3566 Ай бұрын
Very useful thanks.
@rootbindev
@rootbindev Ай бұрын
I'm glad you liked it!
@igordzeba3702
@igordzeba3702 Ай бұрын
Looks great. I've been stuck on this for a couple of days. Let me plagiarise it and I'll tell you if it worked.
@rootbindev
@rootbindev Ай бұрын
Sounds great!
@igordzeba3702
@igordzeba3702 20 күн бұрын
@@rootbindev Worked! Thanks.
@rootbindev
@rootbindev 20 күн бұрын
@@igordzeba3702 Well Done! Im glad to hear that
@IberianInteractive
@IberianInteractive Ай бұрын
my agent becomes invisible
@rootbindev
@rootbindev Ай бұрын
make sure z position and order in layer is correct on both agent and target
@Lauwieeh
@Lauwieeh Ай бұрын
How did you add extra clients after starting the host? Your cursor goes off screen when showing this.
@rootbindev
@rootbindev Ай бұрын
I used a package called ParrelSync (The text says it in the ending). Today I would have used Multiplayer PlayMode thou, I think its good enough and can start multiple clients when pressing play
@Lauwieeh
@Lauwieeh Ай бұрын
​@@rootbindev The speed of this response just earned you a sub.
@rootbindev
@rootbindev Ай бұрын
@@Lauwieeh 😅Thank you, I appreciate it!
@Lauwieeh
@Lauwieeh 5 күн бұрын
​@@rootbindev This little video made me pick up Unity networking, Server/client RPC's and Facepunch / Steam Matchmaking, then i ran into some graphic limits / issues, so in turn made me pick up Unreal Engine, node based coding and its network replication. Please keep doing what you are doing, you underestimate what you are sparking up :)
@tr4vi283
@tr4vi283 Ай бұрын
2:47 i got an error saying “ ‘EnemyManager’ does not contain a definition for ‘DestroyAllEnemies’ and no accessible extension method ‘DestroyAllEnemies’ accepting a first argument type ‘EnemyManager’ could be found. Any Help?
@rootbindev
@rootbindev Ай бұрын
join the discord and I can look atyour scripts discord.gg/EFrYczuAwc
@tr4vi283
@tr4vi283 Ай бұрын
whenever i start the game my gun is far away from me instead of close to me. Any idea on how to fix it?
@rootbindev
@rootbindev Ай бұрын
If you join the discord and show me your code, i can help you :)
@Rhistak
@Rhistak Ай бұрын
Im having the same issue... and the gun does not "rotates" itself but around the player, its really weird
@rootbindev
@rootbindev Ай бұрын
@@Rhistak if you show me the code in the discord i might be able to help
@rootbindev
@rootbindev Ай бұрын
I think you set the SetOffset method to be called in the wrong place, or not called at all
@rootbindev
@rootbindev Ай бұрын
discord.com/invite/EFrYczuAwc
@itsosmx
@itsosmx Ай бұрын
Thanks for the tutorial, I noticed that Unity is running smoothly with you can you share your PC specs or any tips to make it
@rootbindev
@rootbindev Ай бұрын
is unity not running smoothly for you?
@itsosmx
@itsosmx Ай бұрын
@@rootbindev No, especially Unity 6
@tr4vi283
@tr4vi283 Ай бұрын
whenever i click space my health goes from 100 to 10 and everytime i click space again nothing happens to my health
@rootbindev
@rootbindev Ай бұрын
Join the discord and I can help you :)
@streetpartying
@streetpartying Ай бұрын
Your videos are really good so far! I expect your channel will get really popular if you keep this up. I especially appreciate the short, concise overviews, instead of having to sit through an hour long video
@rootbindev
@rootbindev Ай бұрын
@@streetpartying Thank you!
@abhilashlr9259
@abhilashlr9259 Ай бұрын
Damn you actually did a pretty decent job in 3 minutes!
@rootbindev
@rootbindev Ай бұрын
Thank you very much!
@PaniniDev
@PaniniDev Ай бұрын
I love your videos Root!!! This was a delightful watch!
@rootbindev
@rootbindev Ай бұрын
Thank you Panini!
@Balakademi
@Balakademi Ай бұрын
will continue?
@rootbindev
@rootbindev Ай бұрын
Yes i Will :)
@rootbindev
@rootbindev Ай бұрын
New part is out 🥳
@cheesecakenl1980
@cheesecakenl1980 Ай бұрын
Great video! What tools did you use to draw the sprites and create the sprite sheet ?
@rootbindev
@rootbindev Ай бұрын
thank you very much! I use Procreate on iPad with apple pencil
@rvlli2377
@rvlli2377 Ай бұрын
How would the code change if we were to want the walls of adjacent rooms to be the same wall rather than having space in between the rooms?
@bixarrio5251
@bixarrio5251 Ай бұрын
Change roomWidth to 17 and roomHeight to 9. The grid cells will then be the exact size of the room and the walls will lie on top of each other to make it look like they're the same wall
@rvlli2377
@rvlli2377 Ай бұрын
The camera in mine is square instead of rectangle but all of the settings are the same as what you have in the Inspector. What might need to be changed? edit: Found a solution: "By default, cameras will match the shape of your view in the Game window. To set it to the aspect ratio you want, go to the upper-left corner of the Game window, click "free aspect" and change it to the aspect ratio or resolution you want" In our case, I think it's 16:9
@Peter_Siri
@Peter_Siri Ай бұрын
"they were not real friends" 😭
@rootbindev
@rootbindev Ай бұрын
😭
@justinmiguel4630
@justinmiguel4630 Ай бұрын
What if you just used Photon? Do you know if i still have to do this?
@rootbindev
@rootbindev Ай бұрын
If you use Photon you can ignore this tutorial. Photon is another networking library that is not the official Unity solution
@justinmiguel4630
@justinmiguel4630 Ай бұрын
@@rootbindev thank you for the reply
@davidfurtado1005
@davidfurtado1005 Ай бұрын
Thank you, it was exactly what I was looking for, do you know of any way to rotate the enemy towards the target?
@urkkiz7937
@urkkiz7937 Ай бұрын
the best solution to this is using transform.right = target.position - transform.position;
@rootbindev
@rootbindev Ай бұрын
Im glad you liked it!
@CELUGames
@CELUGames Ай бұрын
It was everything we needed!!! This tutorial updated! I came across the video from The World Of Game Design channel. Thank you friend!
@BMW-sd6nn
@BMW-sd6nn Ай бұрын
for some reason I cant drag the compenents file into my assets folder.
@rootbindev
@rootbindev Ай бұрын
Hmm
@mrquokka4733
@mrquokka4733 Ай бұрын
Dude, be real, is this an AI version of your actual voice?
@rootbindev
@rootbindev Ай бұрын
Why! How could you say that
@rootbindev
@rootbindev Ай бұрын
(maybe)
@草叶1
@草叶1 Ай бұрын
7:31 NavMeshAgent . Why doesn't mine have it?
@BMW-sd6nn
@BMW-sd6nn 2 ай бұрын
Hey so im having a terrible time trying to add stuff to unity through the package manager its extremly confusing, i add the nav mesh surface package but none if the other stuff is there for some reason
@rootbindev
@rootbindev 2 ай бұрын
If you're using unity 6 i recommend you watch my latest video instead. Anyway this package is not added through the unity package manager, you just download it from github and drag and drop it into unity
@EmanschiGames
@EmanschiGames 2 ай бұрын
Nice tutorial but I have a question: When I do everything as you said it in the tutorial, I don't see the walkable area and when I start the game this error appears in my console: SetDestination" can only be called on an active agent that has been placed on a NavMesh. UnityEngine.AI.NavMeshAgent:SetDestination (UnityEngine.Vector3) Enemie:Update () (at Assets/Scribts/Enemie.cs:20)
@rootbindev
@rootbindev 2 ай бұрын
Are you sure you did everything I said in the tutorial? make sure you have a navmesh with the correct components
@ynngih725
@ynngih725 2 ай бұрын
@@EmanschiGames try pasting both the whole script and the error into chatgpts. It will probably come up with a solution