Tryitoutkris wrote:Good deal, I was wondering if you could post how you create and destroy objects for peers?
That's last on my list for my game so I'm not there yet. I'm trying to work around it as much as I can but I imagine for something like pressing a button to open a door (destroy a door) I would try
Under Host event sheet
For each peer
multiplayer.id = peerid:
peer.x, peer.y = buttonsprite.x, buttonsprite.y THEN set (buttonsprite isntance variable) "pressed" to one.
Buttonsprite "pressed" = 1 THEN destroy door
We'd have to sync the variable just like the peers have synced variables though. I'm still getting the hang of it.
Also I found this by Ashley which is probably more helpful:
Use 'Sync object' to sync the (objects you want destroyed), and then destroy them on the host. When synced objects are destroyed on the host, the syncing automatically destroys them on all of the peers as well. So you don't even need to send any special messages or have any special flags.