Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: zirai 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.
(http://s26.postimg.org/tpw9ge3ah/Screen_Player1_master.jpg) (http://postimage.org/)
(http://s26.postimg.org/48duwslk9/Screen_Player2_slave.jpg) (http://postimage.org/)
(http://s26.postimg.org/anhh77hnt/Screen_Shot_2014_10_01_at_12_54_12_PM.png) (http://postimage.org/)
(http://s26.postimg.org/6se34myi1/Screen_Shot_2014_10_01_at_12_54_41_PM.png) (http://postimage.org/)
-
Hi,
in second image you need to set to World in SetPosition action:)
-
OH MY GOD IT WOOOORRRRKED.
THX A LOT MAN.
IT'S SO SIMPLE I FEEL SO ASHAMED LOL :D
-
Just a bit of info. The demoworker demo has it set to "Self"...
-
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