User Tag List

Results 1 to 2 of 2

Thread: Best way to send NPC's / Monsters?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2006
    Location
    UK
    Posts
    519
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Best way to send NPC's / Monsters?

    Hey, ok I have an application (Using MOO) where players have character accounts, can connect, walk around the world etc on a master server. Then when a player enters a specific "dungeon" area, the game allows the player to create his own server for that dungeon.

    Now all this works fine, the problem that im having, or rather, considering, is when the player creates a dungeon game, I need to send the X/Y co-ords of all monsters / NPCs etc in the dungeon to the other players from the host.

    So whats the best way to do it without completely sapping bandwidth up? So far ways I have thought about doing it -

    - Send co-ords when the monsters change direction / fire / etc the way it would normally be done limiting the information to as little as possible. Some how sharing values across active monsters in the level so that I can use one object for lots of creatures as it were.
    - Give each individual monster it's own "ID" and send the data when the players "go near it". However this creates for more difficult coding, I was hoping to try and implement a level editor of some kind.
    - Use external files etc to keep track of exactly what is in each dungeon, then use that to somehow send the relative information when players enter certain rooms and sections of the dungeon. Then create the equivalent creature when they enter that section.

    And thats pretty much all I have been able to come up with. My main problem is worrying about the amount of bandwidth been used, also having to somehow "seperate" the creatures so that I have to keep track individually of each one (Using one or many active objects or ID'ing them somehow).

    So um, yea, any help would be appreciated Thank you.

  2. #2
    No Products Registered

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

    Re: Best way to send NPC's / Monsters?

    im not familiar at all with internet games and such, but wouldn't using a binary file be the best option? that way you can save heaps of data as a binary file and when u send the file its only a matter of a few hundred bytes, which would take less than a second to send to virtually any machine.

Similar Threads

  1. Spread value - multiple monsters
    By Yima in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 29th November 2010, 01:07 PM
  2. Problems with my monsters
    By PandaExplosion in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th November 2010, 02:41 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
  •