Hi everyone
I'm still a n00b when it comes to PlayMaker but i've been using it for the last couple of weeks and feel like I have a reasonable good basic understanding.
In my own test project I'm trying to do a simple task - sync the movements of player characters across Photon in a simple multiplayer scene.
I've got the basic movement and rotation sync'ing reasonably well (using Lerp2 as per several examples I downloaded), however I have a problem with jumping.
My player character is using the first person components rather than the third person components I studied in the examples. As mentioned, I had to update the rotation logic in to use Lerp2 as there were too many dropped sync calls and the rotation was very blocky.
My problem at the moment relates to jumping. Despite there being the character motor attached to my player character, sync'ing jumping appears to be very dodgy. Most of the time other characters won't jump even when they should. In my mind I've decided that it must be something to do with the lerping of the Y axis, over a short range of vertical movement, over a network that won't/can't sync every single pixel change. Therefore when the other player character jumps, I usually just see a tiny bit of vertical movement - barely enough to get off the ground.
For this reason I decided to reset the Y acid on the position vector to 0 to prevent any vertical movement being included in the position lerp, to avoid the slight movements on the Y when the character should jump.
Instead I figured I'd sync a simple bool value that is normally set to false, but when the jump button is pressed by a player it is set to true. for other characters, when the value becomes true in the variable fsm (synced) they should tell the character motor of that character to jump (set inputJump to true).
Problem is this doesn't appear to work. It looks like the first part is okay - setting the variable to true - but the part where the character motor sets inputJump to true either never gets there or has no effect.
Has anyone any advice on my approach here; am I on the right track or going way down the rabbit hole? In either case some advice/pointers would be appreciated. I've tried several variations of the sync fsm to try to get it to work but so far, no dice.
cheers!
Lee