Hi All,
I’m developing the logic to control the activities of an NPC in my current project. This “bad guy” will be doing things like moving, attacking, waiting, etc.
What’s the best way to control these behaviors?
Use an onEnterFrame event listener to check a master “behavior function” on each frame? And then would I use a series of timerPerformWithDelay functions to set “flags” to perform certain activities (for instance I wouldn’t want the NPC to attack on every frame if the attack criteria were met)?
Or is there some preferred technique for controlling an NPC that I’m completely missing?
Thanks in advance for any insights anyone can share
[import]uid: 105707 topic_id: 28676 reply_id: 328676[/import]