Reader small image

You're reading from  Learning Game AI Programming with Lua

Product typeBook
Published inNov 2014
Reading LevelBeginner
PublisherPackt
ISBN-139781783281336
Edition1st Edition
Languages
Right arrow
Author (1)
David Young
David Young
Right arrow

Action latency


Now that we've created both approaches for animation handling, we'll take a look at the pros and cons of each implementation. Direct control gives our agents absolute control over animations and allows the decision logic to account for the cost of animation playback. While it might seem counter-intuitive to mix animation logic with decision logic, this allows a direct control agent to be in absolute control over the minimum amount of latency required to go from a decision to a visible action within the sandbox.

With the indirect animation controller taking control over the body, the agent now faces a new issue, which is action latency. Action latency is the time between when a command is queued till it is acted upon. With our current setup of a fully connected ASM, this latency is minimized as any command can go directly to any queued command. A fully connected ASM is not a typical representation of an ASM, though. For many game types, this responsiveness won't affect the gameplay...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Game AI Programming with Lua
Published in: Nov 2014Publisher: PacktISBN-13: 9781783281336

Author (1)