Thread: Running around corners directions

Results 1 to 6 of 6
  1. #1 Running around corners directions 
    Registered Member Sixpack's Avatar
    Join Date
    Sep 2010
    Posts
    339
    Thanks given
    81
    Thanks received
    80
    Rep Power
    24
    When I used to go around a corner it walked around the corner, even when running was toggled on.
    Right now I've changed this and it will now run around corners (only when running is toggled on of course), but the problem that occured is that I do not have 'running directions' for running around corners (needed in the player updating methods to make the whole walking/movement display correctly on a player's client).

    Here are the directions that already existed (the walking ones are for players (not npcs), and for running they don't even exist for npcs in my revision I think):
    Code:
    //Walking directions (part of enum):
    EAST(4), NORTH(6), NORTH_EAST(7), NORTH_WEST(5), SOUTH(1), SOUTH_EAST(2), SOUTH_WEST(0), WEST(3);
    
    //Running directions (part of other enum):
    EE(8), N_EE(10), N_WW(9), NN(13), NN_E(14), NN_EE(15), NN_W(12), NN_WW(11), S_EE(6), S_WW(5), SS(2), SS_E(3), SS_EE(4), SS_W(1), SS_WW(0), WW(7);
    It might be handy to know that once a running direction is used, the walking direction is set to -1 (during the same game tick (every 600 ms)).

    Some information about the running directions:
    NN stands for Noth North which means one step was walked north and the second step was ran north (which looks like you've ran 2 steps north in-game).
    NN_EE means that you moved up 2 places north, and 2 steps east (a diagonal run).

    This is for Dementhium 639 for those who wanted to know. Thanks in advance.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Dec 2011
    Age
    23
    Posts
    2,315
    Thanks given
    473
    Thanks received
    764
    Rep Power
    0
    Bump
    Reply With Quote  
     

  3. #3  
    Registered Member Sixpack's Avatar
    Join Date
    Sep 2010
    Posts
    339
    Thanks given
    81
    Thanks received
    80
    Rep Power
    24
    Bump!
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Dec 2011
    Age
    23
    Posts
    2,315
    Thanks given
    473
    Thanks received
    764
    Rep Power
    0
    bump
    Reply With Quote  
     

  5. #5  
    Registered Member Sixpack's Avatar
    Join Date
    Sep 2010
    Posts
    339
    Thanks given
    81
    Thanks received
    80
    Rep Power
    24
    Bump, need this.
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Dec 2011
    Age
    23
    Posts
    2,315
    Thanks given
    473
    Thanks received
    764
    Rep Power
    0
    Bump
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Diagonal directions?
    By jordan641 in forum Help
    Replies: 1
    Last Post: 04-12-2012, 06:10 AM
  2. need help rounding corners in css
    By dragonxtreme in forum Website Development
    Replies: 3
    Last Post: 01-28-2012, 04:13 PM
  3. [REQ] The corners of new runescape background
    By Skiila pk in forum Graphics
    Replies: 11
    Last Post: 12-18-2011, 06:18 PM
  4. Best way of finding directions
    By Mrquarterx in forum Help
    Replies: 9
    Last Post: 01-10-2011, 10:08 PM
  5. white corners Please Help
    By lipkin in forum Help
    Replies: 15
    Last Post: 04-28-2010, 09:52 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
  •