playMaker

Author Topic: Need help with photon position sync (SOLVED)  (Read 2924 times)

zirai

  • Playmaker Newbie
  • *
  • Posts: 28
Need help with photon position sync (SOLVED)
« on: October 01, 2014, 09:45:38 AM »
Hi everyone,

I’m triyng to make a 2d flappy bird or tiny wing style multiplayer with photon and i follow the instruction from playmaker demo worker sample.
I use rigid body and add force to control the character.

so far i m doing quite well till the position sync part.
so i at the start of the game i want all the player to spawn at the same x & y coordinate, but all i have is the second player always spawn like couple pixel behind.
also the player position is different on each player game screen.
I've attached the screenshot below.

Please help.
This is driving me nuts.
especially for a non programmer like me LOL.










« Last Edit: October 01, 2014, 11:14:43 AM by zirai »

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 713
    • Flashing Lights
Re: Need help with photon position sync
« Reply #1 on: October 01, 2014, 11:06:43 AM »
Hi,

in second image you need to set to World in SetPosition action:)

zirai

  • Playmaker Newbie
  • *
  • Posts: 28
Re: Need help with photon position sync
« Reply #2 on: October 01, 2014, 11:14:03 AM »
OH MY GOD IT WOOOORRRRKED.
THX A LOT MAN.
IT'S SO SIMPLE I FEEL SO ASHAMED LOL  :D

SeriousRPG

  • Playmaker Newbie
  • *
  • Posts: 45
Re: Need help with photon position sync (SOLVED)
« Reply #3 on: May 09, 2015, 02:24:17 PM »
Just a bit of info. The demoworker demo has it set to "Self"...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Need help with photon position sync (SOLVED)
« Reply #4 on: May 09, 2015, 02:40:10 PM »
Hi,

 It's a common pitfall, so no need to feel ashamed :) because the get position and set position have their default space value different, so always double check that you indeed want world or self positioning.

 Bye,

 Jean