User Tag List

Results 1 to 7 of 7

Thread: Online game

  1. #1
    No Products Registered

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

    Online game

    i modified a post from flava (it was a while ago since flava's post) about online games. yet with his one, u had to type the ip of the computer u wish to connect to. there is 1 slight problem. if more then 2 people go on evryone starts flashing and going crazy. i hope you can help fix that!
    Attached files Attached files

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Posts
    220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online game

    Okay firstly get rid of those events which check subchannel 0 for positions - as you seem to be using subchannel 0 for the chat system - so it could cause lots of problems.

    Next, when you have the event "Received message on subchannel 5" - you need to compare the Alterable value A to the PCU_ID of MooClick. This will allow you to move the correct object to the position sent. The reason it is currently flashing is because the event is setting the position of ALL objects to that position.

    Hope that helps you.

    On notes of your movement: Firstly, you're using the eight directions movement. Although this works, I find it is much more efficient to create your own movements. Your own movement allows you to send less information and basically design it exactly how you want. Using a built in movement, you can only really send the position of the player (or direction, but it's still pretty laggy).

    Secondly, you're sending data to somebody every 00.07 seconds. Although my tutorial may have done something similar, it's definately not recommended for a game. I suggest that you use your own movement and only send information when a player starts moving or stops moving (this reduces lag a lot as your current engine seems pretty laggy).

  3. #3
    No Products Registered

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

    Re: Online game

    if you did ALL simple_chat parts, i think part 3 tell you how to make a drwing object so that you can draw a picture and the person you are chatting with see it. i added some of those events into smiley town

  4. #4
    No Products Registered

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

    Re: Online game

    yes the flashing stopped but there still is another error. i opened smiley town 3 times and logged onto all of them. in one of the smiley towns i saw all 2 users. on the second one, the same as number 1. but on the 3rd smiley town.exe i opened i can only see 1 user online. and when i logged off on number 3 all the USERS logged off.

    and im making a 2d online game so how do you make it send in the DIRECTION of the player?

  5. #5
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online game

    Really basic
    all you gota do is make a loop to add new players reather then a single even(moo discards such events as player joined and on msg after a frame)

    also many of the built in moo triggers are buggy, if your makeing a serious muli player game you'd make your own triggers, eg.

    +on player connect
    >send msg on channel(or to host(who would redirect)) "signin"

    +on close application selected
    >send msg on channel(or to host(who would redirect)) "signoff"

  6. #6
    Forum Moderator Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

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

    Re: Online game

    i dunno about a loop to connect new players seele...

  7. #7
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online game

    your absolutely only problem(besides the around bad program)was
    that you had

    +User On User Is Here
    -set value of (other player) to "PCU_GetID( "MooClick" )"
    -create (other player)

    instead of

    +User On User Is Here
    -create (other player)
    -set value of (other player) to "PCU_GetID( "MooClick" )"
    (timing is everything)

    and to Greyhill

    sorry that was worded wrong
    you use the loop to add players alreaddy in game to a new client.

    any way reverse those two and you got a perfect engine.

Similar Threads

  1. online game help
    By dkt3wings in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 20th March 2008, 01:29 PM
  2. An online Game
    By ToffeeandPebbles in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 16th November 2007, 11:27 PM
  3. Example of my online game
    By Dynamite in forum File Archive
    Replies: 2
    Last Post: 10th September 2007, 05:54 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
  •