User Tag List

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

Thread: Online RPG AI

  1. #1
    Clicker Fusion 2.5 Developer

    Join Date
    Oct 2006
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Online RPG AI

    Does anyone have a clue what is the best way for all users in a online rpg to monitor npc movement and make it all sync correctly...

    any help is appreciated.

  2. #2
    Clicker Fusion 2.5Fusion 2.5+ DLC

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

    Re: Online RPG AI

    Simple, I have in my MMORPG even system that makes NPC chase players, all controls server side.

    You need to have map in the memory of server (grid is almost must). For example, every 2 secs run a loop which calculates new positions and then send the result to the session.

    Thats the main point, forget about client controlled things.

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Oct 2006
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online RPG AI

    how is it possible to have then smooth animation, so you can see npcs walk to their new position, and they only chase you if you are in a battle with them.

  4. #4
    No Products Registered

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

    Re: Online RPG AI

    If the server sends the destination (and speed, if needed) of a npc, then the client has enough information to make it move

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Oct 2006
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online RPG AI

    but then i need to create a another object that leads the main npc through cordinites? if im using for example bouncing ball movement on the npc's...

  6. #6
    Clicker Fusion 2.5Fusion 2.5+ DLC

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

    Re: Online RPG AI

    You dont need anoher object.

    Say the old coordinates are X1 and Y1, new X2 and Y2.

    When recieved data to specific NPC, it set new positions to some values. Then you can use simple extension or code to move the object to new position smoothly.

    Like:
    Alt X>X pos = X pos +1
    etc.

    Its the simplest method and could look quite good.

  7. #7
    Clicker Fusion 2.5 Developer

    Join Date
    Oct 2006
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online RPG AI

    Move safely 2 object extension, does that work?

  8. #8
    Clicker Fusion 2.5 Developer

    Join Date
    Oct 2006
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online RPG AI

    awwwwwww...this is killing me here, every npc is moving so damn stupid, no idea how to figure out how to make them move with the correct animation and dir, and without sending flooding messages to the client from the server...
    * biting fingernails*

  9. #9
    Clicker 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 RPG AI

    you do it something like this: send a message with information of where it started from, and where it should end up, that's it really

  10. #10
    Clicker Fusion 2.5 Developer

    Join Date
    Oct 2006
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Online RPG AI

    yeh, but is it best to send to all npcs at once or just one at a time, depending where the player is standing, if so how in the hell.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. a online
    By Conman in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th May 2009, 07:49 PM
  2. online
    By Stephen38 in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 4th August 2008, 08:52 PM
  3. Online
    By Guitaristinmakin in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 12th March 2008, 09:36 PM
  4. Online
    By Guitaristinmakin in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 14th May 2007, 11:21 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
  •