Posted by Just another Oldbie on 2/19/2005, 9:37 pm, in reply to "thanks!" This is all logic for the most part, which is much easier to write than the actual code, but good luck anyhow. Once again, hope this helps!
68.57.245.187
NPC direction (who)
This will tell you which way the NPC is facing.
Then use the Read Pass Block to determine if there are any walls within that NPCs line of sight (would be cool if you included some peripheral vision too).
Nest an IF statement within a For loop (use a counter of 0 to however many tiles the NPC can see) to compare the hero's current position to the one's that the NPC can see.
Message Thread:
![]()
« Back to thread