• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Gliba · Dec 04, 2016 at 08:24 AM · networkingmultiplayermultiplayer-networkingmultiplayer networkinghosting

Multiplayer advanced - Single Player in Multiplayer game, using another Hosting services.

 Hello internet!

[EDITED]

  • I’m am starting to develop a multiplayer game for android devices, and before I get to work I have to find solutions for some issues, so can you please give me some advices on this:

  1. How should I write code so that game will be playable on single player and multiplayer as well?? Should I split up the project by making for example 2 player prefabs – one for single player and another for multiplayer (also different scripts attached). Or should I have only one player prefab?? So then I will have to write all logic (single player and multiplayer) into same scripts – how hard it will be? For example – What changes should be done in Multiplayer FPS project from Brackeys tutorials so that it will support Single Player? One solution that I found is to start the game as local host and block other people to join the game in case of single player mode, is it good solution? Anyone tried?

  2. Can I host matches on another hosting services instead of those provided by Unity? If yes then give me some advices on how to achieve that and some good examples, if not then is it hard to implement another matchmaking system? p.s. Sorry for bad English, it’s not my first language ;). Thank You!!!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Setup Custom Multiplayer Joining 0 Answers

Unity networking tutorial? 6 Answers

Which networking engine is right for me? [Reqs in post] Or, maybe I need to be convinced that my reqs are not actually what I want... :) 0 Answers

Best way to host Unity2D Game online with multiplayer 0 Answers

Remove Player and Close Connection in Multiplayer Game 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges