playMaker

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

zirai

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Need help with photon position sync (SOLVED)
« on: October 01, 2014, 06: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, 08:14:43 AM by zirai »

600

  • Sr. Member
  • ****
  • Posts: 493
    • View Profile
    • Car and Traffic Playmaker assets
Re: Need help with photon position sync
« Reply #1 on: October 01, 2014, 08:06:43 AM »
Hi,

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

zirai

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: Need help with photon position sync
« Reply #2 on: October 01, 2014, 08: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
    • View Profile
Re: Need help with photon position sync (SOLVED)
« Reply #3 on: May 09, 2015, 11:24:17 AM »
Just a bit of info. The demoworker demo has it set to "Self"...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Need help with photon position sync (SOLVED)
« Reply #4 on: May 09, 2015, 11:40:10 AM »
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