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.
|
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; }
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.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |