As a peer / host, I need to create a sprite on the screen in a game on mouse-double click at that position. This sprite needs to be broadcast to all other peers...I am trying to do this for a while now and have not been able to get across. Could some one please help?
The exact issue is - I am able to create the sprite on peer with a double click, but unable to get it positioned at the mouse-double click position...It gets created on top-left corner at 0,0 position for x,y co-ordinates.
Inside Peer group - I am setting client input state "x" and client input state "y" on mouse-double click event and sending a message with "create" tag...and
on Host I have event/action as - On peer message "create" --> create sprite at Multiplayer.Peerstate("peerID", "x") / Multiplayer.Peerstate("peerID", "y")
But somehow the above code doesnt seem to work in a desired fashion...any help is appreciated