Hello,
I’m trying to make players spawn at different positions. How can i make it with the new input system ? Is it possible with the component “Player Input Manager” ? I’m using joy-cons as controllers (this part is working already) but i want to keep it.
What do spawn positions have to do with Input? It sounds like you have two separate problems that you should think about separately:
- How do I get two different users to control two different characters?
- How do I get two different chracters to spawn in two different places?
Try to solve each one of these in isolation, then worry about making them work together.
I’m using the player Input manager for making users inputs that are differents for the two players but i don’t know how to use this system to make them spawn at different places. i think of, in the start method, testing if there is already a player and if there is one change the position of the spawn point but if both inputs are made at the same time theire will be a bug
You have the clients send a message indicating their desired spawn point to the server/host. On the server/host if no one has selected that spawn point then send a message to the clients that that client has chosen that spawn point. If the spawn point is already chosen then send a message to just that one client saying choosing the spawn point failed.
None of this really has anything to do with the new input system other than getting the initial input, so you’re making your question unnecessarily confusing. This is purely a networking question. Unless by local multiplayer you really mean local, as in no networking, in that case nothing on the main thread happens at “the same time” so this whole discussion is really a non-issue. Things feel like they happen at the same time because frame updates happen quickly, but they don’t.
i tried what i said earlier and it works … yay !!! so you’r right i was confusing myself … thank anyway you both made me think in another way ^^