The Daily Click ::. Forums ::. Klik Coding Help ::. Creating a lobby for an Online game
 

Post Reply  Post Oekaki 
 

Posted By Message

cake



Registered
  13/12/2002
Points
  1173
11th December, 2003 at 23:26:47 -

Ok, I have MMF, and I am currently making and online game which has a lobby where people can chat and create/join games.
I have the chat completely working, but I'm running into major problems with trying to create games and have people join them, its very confusing and I don't really know how MooClick handles player IDs etc.
Can anyone give me some advice or help?

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
12th December, 2003 at 04:06:44 -

There are some differant methods, depending on how much you care about security and such.

1.
When you click the start game button send the username of the requesting player(player1) to the other player(player2) and when they recieve it start a game.

Button1 was pressed - send string to 'player2' = "StartGame" + "%" + (username here)
- then 'start game'

Where the % is is what you can use to break up the data. Using string parser 2 or something alike. This method is pretty insecure but as long as no two people have the same username it should work.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

cake



Registered
  13/12/2002
Points
  1173
12th December, 2003 at 04:41:50 -

This game has games of up to 4 people, so its kinda trickier. Actually I think I've solved my own problem, I just added in a waiting room where when you join a game it takes you there and you can leave the waiting room and return to the lobby or wait until the creator starts the game

 
n/a

Beachbabe



Registered
  26/06/2004
Points
  10
1st July, 2004 at 09:22:23 -

HEY!!! Does anyone have a good game with mooclick for an example???

Ive got a very good game, but want to make it go over the internet

can you please email me @ mattlisdman123@hotmail.com and ill advertise your games on my VERY POPULAR website...

www.therealshit.tk

 
n/a
   

Post Reply



 



Advertisement

Worth A Click