Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I have a problem syncing the array,the host and the peer both have access to the array but is not in sync.
Develop games in your browser. Powerful, performant & highly capable.
Have your array been assigned to be in sync as instructed in the tutorials and examples for the multiplayer plugin ?
Also, you can make your own sync, by using the "Send a message" action and transfer the content of the array from the host to the peer .asJSON
I wanted to send the array as .asJSON but do i need to load the array to have the data change or how should i do?
You can load array on message received.
So on message receive i make load on to the array as
name_array.asJson,i hope this will work,Thanks a lot.
Well to be specific, it would be
+ Multiplayer: On peer message "arrayUpdate"
-> Array: Load from JSON string Multiplayer.Message