Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
  • Help Room /
avatar image
0
Question by ajaybhojani · Dec 11, 2015 at 03:18 PM · multiplayergameturn-basedcard

How to make turnbase multiplayer game using photon ?

hi I am indie developer I am making turnbased multiplayer cardboard poker game. I am confused where i have to start ? Which Photon SDK should I have to use for player spawn and make state synchronization events in network? Please provide me some guide where i can start.

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by ajaybhojani · Jan 07, 2016 at 12:01 PM

Go through all tutorial provided by PUN. Run all demo and its functionality. After understanding it will be easy build game

https://doc.photonengine.com/en/pun/current/getting-started/initial-setup

Comment
Add comment · Share
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
avatar image
0

Answer by Echo____G · Dec 30, 2015 at 04:49 AM

you can download some sample from unity assets store ,sign in photon ID.the photon engine.com haves the the tutorial about the samples.

Comment
Add comment · Show 5 · Share
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
avatar image ajaybhojani · Dec 31, 2015 at 12:38 PM 0
Share

thanks a lot... I have spawned player successfully :) But trying to display own player on screen centre position and other joined player should be available either left or right. Each player can see his position on center in his app. Is it possible ? I am using photonview.is$$anonymous$$e method. But not succeed.

please help

avatar image moh05 ajaybhojani · Jan 06, 2016 at 02:15 PM 0
Share

I have the same issue...any luck? :)

avatar image ajaybhojani moh05 · Jan 07, 2016 at 04:38 AM 1
Share

you can use something like this, give script to player that you are spawning access- public List t = new List(); from network manager.

Vector3 position; Quaternion rotation; Vector3 scale;

 public Vector3[] Spanpoints_1 = new Vector3[5];
 public Vector3[] centerpos_1 = new  Vector3[1];
 public int index;
 List <Vector3> element = new List<Vector3>();
 Animator m_Animator;
 PhotonView m_PhotonView;
 Vector3 myuniquepos;
 void Awake() 
 {
     m_Animator = GetComponent<Animator>();
     m_PhotonView = GetComponent<PhotonView>();
 }
 void Start ()
 {
     Vector3 pos1 = GameObject.Find ("Network$$anonymous$$anager").GetComponent<Network$$anonymous$$anager> ().Spanpoints [0].transform.position;
     Vector3 pos2 = GameObject.Find ("Network$$anonymous$$anager").GetComponent<Network$$anonymous$$anager> ().Spanpoints [1].transform.position;
     Vector3 pos3 = GameObject.Find ("Network$$anonymous$$anager").GetComponent<Network$$anonymous$$anager> ().Spanpoints [2].transform.position;
     Vector3 pos4 = GameObject.Find ("Network$$anonymous$$anager").GetComponent<Network$$anonymous$$anager> ().Spanpoints [3].transform.position;
     Vector3 pos5 = GameObject.Find ("Network$$anonymous$$anager").GetComponent<Network$$anonymous$$anager> ().Spanpoints [4].transform.position;
     element = GameObject.Find ("Network$$anonymous$$anager").GetComponent<Network$$anonymous$$anager> ().t;
     Vector3 centerpoints = GameObject.Find ("Network$$anonymous$$anager").GetComponent<Network$$anonymous$$anager> ().Centerpos [0].transform.position;
     
     Spanpoints_1 [0] = pos1;
     Spanpoints_1 [1] = pos2;
     Spanpoints_1 [2] = pos3;
     Spanpoints_1 [3] = pos4;
     Spanpoints_1 [4] = pos5;
     
     centerpos_1 [0] = centerpoints;

     if (photonView.is$$anonymous$$ine)
     {
         this.transform.position = centerpos_1[0];

     }
     else
     {
         IndexFind();
         
     }
 }

  void IndexFind()
 {
     index = Random.Range (0, Spanpoints_1.Length);

     while(element.Contains(Spanpoints_1[index]))
     {
         index = Random.Range (0, Spanpoints_1.Length);
     }
     this.transform.position = Spanpoints_1[index];
     element.Add(Spanpoints_1[index]);
 }
Show more comments

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.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Detect whether the parent object has child object or not? 1 Answer

Card Game using Network Manager 0 Answers

Turn based hotseat - how to loop through all players 0 Answers

U3DXT turn based multiplayer 0 Answers

Multiplayer Survival Status Handling 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges