playMaker

Author Topic: Network on android. [SOLVED]  (Read 2392 times)

mRadek

  • Playmaker Newbie
  • *
  • Posts: 3
Network on android. [SOLVED]
« on: March 13, 2012, 05:04:20 AM »
It's my first post, so it's good to say HELLO :)

I try to make 4_SpawnPlayers working on PC and android device but I don't know what to do with IP numbers?
Can I read IP on device and use it as the server IP?

My goal is to create simply multiplayer game for 2 android devices. Can I use that sample?

Fixed :) I used: Network Get Local Player Properties to get my IP.

Hm... I can't find NetworkView script to add NetworkView component...

« Last Edit: March 14, 2012, 09:45:12 AM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Network on android.
« Reply #1 on: March 14, 2012, 12:57:46 AM »
Hello! Generally the NetworkView component is already on the prefab that you Network Instantiate. Unless I misunderstand the problem...


mRadek

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Network on android.
« Reply #2 on: March 14, 2012, 04:21:13 AM »
Thanks, it's solved :)

If I wanna use my own object/prefab for Network Instantiate the NetworkView component is in Editor
Component/Miscellaneous. I find it  :D