User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: How do I create a limited multi-player game?

  1. #1
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I create a limited multi-player game?

    Ok lets say you have your game with OINC but it's a 4 player game, so only 2, 3 or 4 people can play at a time.

    I'd Imagine you should do it like this- Lets say you start in a general chat room with a "host game" button & a list of games to join, at any time you can create or join a game which sends you to a channel but only if there are less than 4 people in that channel & that game hasn't started yet and the host can press start so they can blow each other up. (Or In other words, like battle.net).

    So...

    1) How do I create a list of availible Games?
    2) How can a player create a Channel?
    3) How do I limit the number of players in a specific Channel? (not all, I dont want a limit on the entry chat room).
    4) How do I check to see if a game hasn't begun yet and people are still joining?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    James's Avatar
    Join Date
    Jun 2006
    Location
    Newcastle, UK
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I create a limited multi-player game?

    1) Wait for the next alpha which has channel listing capabilities

    2) Join a channel which doesn't exist and it will be created automatically

    3) You would have to modify the server to have that functionality. I think Mathias was making an automatic server code generator for things like this if you don't want to learn Python or C++ (it's not finished yet, though)

    Alternatively, you could limit it client side, although this is pretty easy to hack.

    4) This is specific to how you code your game - unless you have something special server side, you could check the number of players in the channel.

    Get in touch with Nick, he made a functional game like you are describing in OINC.

  3. #3
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I create a limited multi-player game?

    3) You'd just have to an expression like this 'GetChannelPeers("OINC Client", Channel Name)' to retrieve the amount of peers in a specific Channel and I can check while still in entry chat room to see if you can join it.

    5) How do I create Channels that won't appear on the Games Listing, like the entry chat room or private games?

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    James's Avatar
    Join Date
    Jun 2006
    Location
    Newcastle, UK
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I create a limited multi-player game?

    3) As I said, you could do it client side.

    5) It's all part of the next build.

  5. #5
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I create a limited multi-player game?

    When the next Build comes out or later afterwards, i'll test all of this with a simple 4 player game, maybe a tank game with a grid.

  6. #6
    Clicker Multimedia Fusion 2iOS Export ModuleXNA Export Module
    Asholay's Avatar
    Join Date
    Nov 2008
    Location
    England
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I create a limited multi-player game?

    This is exactly what I'm working on right now...!

    It ain't easy!

  7. #7
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I create a limited multi-player game?

    Not easy for you but Iv'e planned it out carefully and decided to do a 'everything done on host's computer' approach that way it should be easy to counterstrike most OINC related problems.

    For Example: Player 2 presses Up, Player2 asks Player 1 to see if one up from Player 2 is obstacle if not, move Player 2 Up from Player 1's Computer then tell all the other computer's Player 2 has moved Up.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module
    Fusion 2.5 (Steam)
    Mathias's Avatar
    Join Date
    Jun 2006
    Location
    Copenhagen, Denmark
    Posts
    1,083
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I create a limited multi-player game?

    Well, if you're concerned about security, here's a few tips:

    The client shouldn't have to ask Player 1 if it can move up or not. Player 2 could do something like: tell Player 1 it wants to move up, then Player 1 sends a 'Player 2 is moving up' message to all the clients, and when Player 2 collides or stops, a 'Player 2 is now stopped' message is sent.

    That's how I would've done it, atleast.

  9. #9
    Clicker Multimedia Fusion 2iOS Export ModuleXNA Export Module
    Asholay's Avatar
    Join Date
    Nov 2008
    Location
    England
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I create a limited multi-player game?

    Quote Originally Posted by dragonguy
    Not easy for you but Iv'e planned it out carefully and decided to do a 'everything done on host's computer' approach that way it should be easy to counterstrike most OINC related problems.

    For Example: Player 2 presses Up, Player2 asks Player 1 to see if one up from Player 2 is obstacle if not, move Player 2 Up from Player 1's Computer then tell all the other computer's Player 2 has moved Up.
    Well it's clearly not easy for you either, or you wouldn't be posting questions for each stage of it??

    Sounds like a great lag-free system though...

  10. #10
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I create a limited multi-player game?

    Well you see it will be grid-based, that is what enables me to do it in such a way, if it didn't have a grid and you can move and point anywhere then a security system would be very laggy unless you do it Darkkillers way.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Trying to create conversation tree with limited success...
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 31st May 2012, 03:41 AM
  2. Multi player latency
    By Tuna in forum Lacewing
    Replies: 18
    Last Post: 8th June 2009, 02:06 PM
  3. Please create a better mp3 file player
    By MikeB in forum Extension Development
    Replies: 11
    Last Post: 31st October 2008, 07:53 PM
  4. Create 2 player game
    By kmarshall in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 20th June 2007, 07:44 PM
  5. Multi-player online
    By only_me in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th October 2006, 04:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •