Move-Random-On-A Action

From AgentCubes
Revision as of 06:42, 17 June 2019 by imported>Loon911
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Move-random-on-a1.PNG

Move-random-on-a2.PNG

Definition: Move-Random-On-A Action: When conditions are satisfied, this action moves an agent randomly on any agent class name.
Parameters: agent class namethe type of agent to look for
Additional Parameters:

animation: accelerated or constant speed

time: movement happens instantly (if time is 0) or the slider() option connects the animation time to the slider located above the world.

Example: AgentCubes move-random-on-a example

In this example the lady bug agent is using move-random-on action and can only move on the red tile. However, the beaver is using the move-random-on-a action which allows the agent to move on all of the tiles shapes.