User Tag List

Results 1 to 9 of 9

Thread: Mooclick/Online Game Help

  1. #1


    Join Date
    Feb 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mooclick/Online Game Help

    I'm developing a game that will be able to do Online Battles. I know that you have to send messages/text with MooClick, and all that jive. The problem is this:

    1. OK I have 3 Global Strings that I want to use... Global String A , Global String B, and Global String C. I want Global String C to copy Global String A. Then I want Global String C to be sent to the other game online (Basically I want both games to swap their Global String Cs). Global String B would then copy Global String C. Also how do you do the same for Global Values (I know I'm definitely going to need this in the future).

    2. I want to limit a server to only 2 people... How do I do this??????????

    The online portion of the game has basically been modeled from Flava's MooClick Example File.

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2006
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick/Online Game Help

    2) If you want to limit a server you need two events, mooclick and a "connect" button.

    * Button "connect" clicked
    + Special> Compare 2 general values> (MooClick)Get Number of Users < 2

    - Connect to server

    Hope this helps!

  3. #3


    Join Date
    Feb 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick/Online Game Help

    Hmmm... I can't seem to find Get Number of Users... Although I see "Count Players" and "Count Users" would one of them work? [confused]

    What about "Count Connections"???

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Nov 2006
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick/Online Game Help

    Well, it is kind of complicated. You are the player and other people are users. So the code would actually be

    +Button clicked
    +# of Users < 2

    - Connect to server

    You would do users because that is OTHER players. Therefore that code says in English, "When a button is clicked and there is one other human or no other humans you can play. If there is more than 2 other players you cannot play.

    So to answer your question, count users would be acceptable and count players, servers or connections would not.
    (I never really knew what count servers was for)

  5. #5
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick/Online Game Help

    i hav the same problem. i wanna make an online game! and there is no compare 2 generall values in special.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick/Online Game Help

    There is a compare two general values under special conditions :P Look a little harder.

    If you want to limit the number of players to a server then I suggest you get the server to kick the last client to join when there are more than 3. Because I'm pretty convinced that you can't get the number of Users on a server without connecting to it. That doesn't really make sense. I would have thought that MMF wouldn't know which server you are talking about. Correct me if I'm wrong though, I haven't tested that.

    So my idea. When the server detects that a third person has joined, it simply sends a message to the client saying he can't join. When the client recieves the message, it closes the connection.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick/Online Game Help

    No, the server sends the message and kicks the client off. NEVER depend on the client to disconnect or similar because it is so darn easy to bypass.

  8. #8


    Join Date
    Feb 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick/Online Game Help

    Oh ok thanks DDD

    Now on to my first question... I think it was a bit too confusing... To put it simple...

    How do you send Global Strings and Global Values with Mooclick? So like 1 Game can change a Global String/Value of the other Game. I need the specific command btw.

    Also how do you copy a global string to another one (like let's say Global String A has "Cheese" and I want Global Sting B to have "Cheese" as well).

  9. #9
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick/Online Game Help

    For copying one global string to another, just set the one to the other.
    E.g. "Set global string A to 'Global String B'".

    To send it, you make up some syntax that the other players look for and send it around. E.g. you send a string like this (I made this up):
    "GA:hello"
    You have to then listen for incoming strings and check if the first character is "G" (in this case for "global"), the second "A" or "B", etc. (here for the certain global value), then parse everything after the ":" which is the string to be delivered.

    There's no default solution for this I think. Make something up!

Similar Threads

  1. multiplayer online with mooclick?
    By AndyB in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 18th April 2010, 04:08 PM
  2. MooClick online game matchmaking ?
    By Physco in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th March 2009, 10:29 AM
  3. game need mooclick?
    By dkt3wings in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 28th October 2007, 02:37 AM
  4. Mooclick 2 player game!
    By Jack_Mcphee in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 20th February 2007, 09:06 AM

Posting Permissions

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