Forum Multiplayer Send messages to connection in another scene

Discussion and help relating to the PlayerIO Multiplayer API.

Send messages to connection in another scene

Postby stal1n63 » October 2nd, 2017, 8:05 pm

I have 1 PlayerIO.Connection (bla bla bla. CreateJoinRoom(blah)), and can simply send messages into connection. When i change scene(and new code), i dont know how find this connection and send to messages.
stal1n63
 
Posts: 1
Joined: July 26th, 2017, 7:27 pm

Re: Send messages to connection in another scene

Postby Henrik » October 6th, 2017, 5:35 am

What environment are you writing your game in? Flash? Unity?

You need to save a reference to your connection in some global variable that you can access from all scenes.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm


Return to Multiplayer



cron