Multiplayer

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
7Leven
Posts: 18
Joined: Sat Oct 11, 2014 2:06 am

Multiplayer

Post by 7Leven » Fri Nov 21, 2014 5:30 pm

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.

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 327
Joined: Sun Apr 15, 2012 1:17 am
Location: USA
Contact:

Re: Multiplayer

Post by Newbie4 » Sun Nov 23, 2014 1:36 am

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
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

Post Reply

Return to “Games”