Recursoft
(Recursoft)
March 30, 2020, 8:50pm
69
LOFTI:
I’m struggling to get my project to work online. To be up front, I am a novice and I don’t fully understand the ins and outs of online networking but I think my problem might be more basic than that.
My state machine is not updating properly in online sessions and my character appears frozen.
In the event graph of the state machine itself I have used the tick to print some of the information used in transition rules to make sure it’s getting the right information and it appears that it is. For example, it is correctly recognizing that when the character spawns in above the ground that the character Is Falling and when the character hits the ground it correctly updates to Is Walking and but then the transition at the topmost level of the SM is exactly that - (Walking)<–>(Falling) - and this does not transition. Furthermore, during the brief fall to the ground the (Falling) sm should go down a few levels, (falling)->(controlled)->(idle)… etc but it does not do this either, it gets stuck at the first transition.
Any help is appreciated.
Thank you!
Just to check a few things first… everything works properly in single player?
How are you configuring the SM tick & transitions for multiplayer- Client, server, both?
On your event graph in the SM when you overload the tick function, make sure you still call the parent tick and pass in delta seconds.