User Tag List

Results 1 to 7 of 7

Thread: Send info about Multiple Objects

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Send info about Multiple Objects

    I'll do my best to make sense...

    This situation involves the OINC object, but this is not a question about OINC (the OINC part i can do).

    I am creating a "server" for a multi-player game. The server keeps track of 20 or so objects that are all identical, other than their position on the frame. These objects are always in motion.

    When a player enters the area that is controlled by this "server", I want to send the position of each of these objects to the player.

    I need to send the data only once when each player enters the frame, from there, the client application will handle the rest.

    Thanks!

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Send info about Multiple Objects

    Wouldn't you just use the

    *On Peer Connect:
    -Send X("Object") + ";" + Y("Object") on Subchannel somthing

    and use the string parser to separate?

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Send info about Multiple Objects

    Well, yes, that part is true. I know how to send the data.

    The problem is that i have 20 objects, all made by creating new instances of an original object.

    I can't figure out how to loop through and get the position of each to be able to send them each when the on peer connect event happens. if it were ONE object, that would be no problem.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Send info about Multiple Objects

    oh! So their aren't 20 players, there are 20 objects that aren't specific etc etc...

    Spread value in alterable value a of objects?

    *On loop "send the x and y"
    +Alterable value a of object = loopindex("send the x and y")
    -Send the blah

    does that help at all? I'm not quite sure exactly what kind of "objects" you are talking about...

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Send info about Multiple Objects

    Yeah, you pretty much nailed it... I think that will work. Let me give it a shot.

    A little clarification: The objects are Active Objects.

    Is there a way to get an an active object's direction as well?

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Send info about Multiple Objects

    Dir("Active")

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Send info about Multiple Objects

    Thanks... I knew that, just had a moment of total ignorance! lol

Similar Threads

  1. How to send-recieve objects betweven two frames in an APP
    By Jonbulica in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 17th November 2011, 04:25 PM
  2. Multiple PMOs for multiple Objects
    By Blood_Wist in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 31st May 2008, 01:49 AM
  3. Multiple PMOs for multiple Objects example
    By Blood_Wist in forum File Archive
    Replies: 1
    Last Post: 31st May 2008, 01:48 AM
  4. Sum (multiple alt values, multiple objects)
    By Melvin in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th April 2007, 02:00 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
  •