Page 1 of 1

Multiplayer

Posted: Fri Nov 21, 2014 5:30 pm
by 7Leven
Hello, I'm somewhat new to LiveCode. I don't consider myself a beginner but I don't consider myself a master.

Anyway, I'm having trouble understanding how I would go about programming an application that involves a multiplayer where one player has his character move, and another has his character move. I want it to update as the characters move of course. I've thought of using a mySQL database to store their locations, etc, but I feel that is very unconventional and probably innefecient.

If there is any other way I can do this in LiveCode, please share. I'm a quick learner.

Re: Multiplayer

Posted: Sun Nov 23, 2014 1:36 am
by Newbie4
You can have them use different keys on the keyboard. i.e. Player 1 can use the A/S/D/W keys and Player 2 can use the arrow keys.

If this is what you were thinking of, have a look at the lessons under 1.3 here: https://sites.google.com/a/pgcps.org/li ... rogramming. You can also look at how each one implemented this at http://erhs.shaosean.tk/ (scroll down to Maze2P and Scoccer2P games near the bottom of the page.

Hope this helps