I'm new to Construct 2 and trying to set up a connection with my own WebSocket server. I have communication both ways, but have not yet invoked action in response to input from the server. I currently have Action: Load from JSON string WebSocket.MessageText on Event: WebSocket On Message. I know that the On Message event receives data. What I need to know is how to write the JSON input to get a simple sprite to move right, left, up, down. It's fine if that's based on Keyboard methods, right, left, up, and down arrow. If I am right so far, simply receiving the right JSON string in MessageText should cause the sprite to move appropriately?
Tell me more
×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.