- Home /
How to implement a game which supports single player as well as multiplayer??
Hi, I know how to make a single player game and a multiplayer game using PUN2. I am working on a game which supports both multiplayer and single player. I am little confused about how to control the code flow. I have some idea but I want the best one. Anyone has any idea? Please do share. Thanks
there is no "best solution" to this. It always depends on the game you are building. Why don't you share the ideas you have so it can be discussed if these are good and if or how they can be improved upon?
Answer by sameterdogmus · Oct 30, 2021 at 09:22 AM
Multiplayer and singleplayer modes are completely different from each other. I'm giving an example photonnetwork.instantiate you don't need to call it like that in a single player mode, you should take the scene and write most of the code differently.
Sorry if my English is bad.