Thread: certain npc walking

Results 1 to 2 of 2
  1. #1 certain npc walking 
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    28
    Posts
    4,557
    Thanks given
    1,158
    Thanks received
    1,174
    Rep Power
    2949
    hello, all the npcs moves 5 squares of their spawn position, I want choosen npc to move 20 squares from their position I use this code but how would I make it to the npc I want to move 20 squares?

    Code:
    if((npcs[i].absX > npcs[i].makeX + 20) || (npcs[i].absX < npcs[i].makeX - 20) || (npcs[i].absY > npcs[i].makeY + 20) || (npcs[i].absY < npcs[i].makeY - 20)) {
    							npcs[i].walkingHome = true;
    						}

    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     

  2. #2  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    Is that the original piece of what you've changed? If that is a formatted version, then make an exception for a certain npc and how far he can move. Can't be that hard.
    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. [PI] Help! Walking.
    By It0ken Edvinas in forum Help
    Replies: 2
    Last Post: 11-28-2010, 11:51 AM
  2. [PI] Help! Walking.
    By It0ken Edvinas in forum Help
    Replies: 1
    Last Post: 10-29-2010, 07:48 PM
  3. Replies: 9
    Last Post: 07-31-2010, 12:42 AM
  4. npc walking
    By Dust R I P in forum Help
    Replies: 2
    Last Post: 02-11-2010, 10:14 PM
  5. NPC Not Walking?
    By Trytohaxme in forum Help
    Replies: 4
    Last Post: 10-06-2009, 07:31 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
  •