How to Call Player Functions From Canvas Elements in Multiplayer Game?

Updated on September 13, 2017 in [A] Multiplayer
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
3 on September 4, 2017

So I’m trying to call functions on the player from buttons and sliders on the canvas in a multiplayer game. Problem is the only way I know how to call player functions from the UI are via singletons, and I’m not sure how singletons work in multiplayer. When I was testing, the functions only worked on the host, and not on the clients. Any ideas how to fix this?

  • Liked by
Reply
2 on September 5, 2017

 

You can call a function on other clients, let that function change the buttons and slider settings.

on September 13, 2017

Isn’t that like backwards of what I’m trying to do, since I’m trying to get the buttons and sliders to call functions on the players?

Helpful
on September 13, 2017

What type of functions are you trying to sync to other clients? Or are you trying something else? Can you explain more?

Show more replies
  • Liked by
Reply
Cancel