AUTONOMOUS AGENTS

askROMvectoragent5

Turn the tables on the killer cubes!

These vectoragents will constantly seek your cursor, but if you click the mouse button they will flee your cursor for as long as you hold the mouse button down.

I've also made some further code refinements to the basic movement ActionScript. There are some new vectoragent parameters, too:

[brakes] - This determines the rate the vectoragent slows when it reaches it's target: lower values stop the vectoragent more quickly. 1.0 - 15.0 is good.

[nimbleness] - This determines how quickly the vectoragent can turn to change direction: higher values make the vectoragent more nimble. 0.1 - 5.0 is practical.

[maxSpeed] - This is the maximum forward speed the vectoragent can attain. 1.0 - 20.0 is reasonable.

Download .FLA

Next: How to make the vectoragents avoid bumping into and overlapping each other!



email me