Difference between revisions of "Move-Random-On Action"

From AgentCubes
Jump to navigation Jump to search
imported>Corrina
imported>Corrina
Line 16: Line 16:
 
<td align="left" valign="top" width="80"><b>Additional Parameters:</b></td>
 
<td align="left" valign="top" width="80"><b>Additional Parameters:</b></td>
 
<td align="left" valign="top" width="100%">[[Animation parameter|animation]], [[Animation time parameter|time]]: the move-random-on action can animate the movement with accelerated or constant speed; and it can make the movement happen instantly (if time is 0) or it can take any amount of time to perform the animation. The slider() option in the time parameter connects the animation time to the slider located above the world, next to the other world controls.</td></tr>
 
<td align="left" valign="top" width="100%">[[Animation parameter|animation]], [[Animation time parameter|time]]: the move-random-on action can animate the movement with accelerated or constant speed; and it can make the movement happen instantly (if time is 0) or it can take any amount of time to perform the animation. The slider() option in the time parameter connects the animation time to the slider located above the world, next to the other world controls.</td></tr>
 +
<tr>
 
<td align="left" valign="top" width="100%">???WHICH EXAMPLE???
 
<td align="left" valign="top" width="100%">???WHICH EXAMPLE???
 
[[Image:Move random action example.png|500px]]</td>
 
[[Image:Move random action example.png|500px]]</td>

Revision as of 23:03, 18 April 2012

Move random on action.png

Move random on expanded.png

Definition: The Move-Random-On Action: When conditions are satisfied, this action moves the subject agent randomly onto agents of type specified that are immediately adjacent. If there are no such specified agents immediately adjacent (that is, in the 8 adjacent places), nothing happens. If there is one specified agent, the subject agents moves onto it. If there is more than one specified agent, the subject agent randomly selects one specified agent and moves onto it.
Parameters: Target Agent
Additional Parameters: animation, time: the move-random-on action can animate the movement with accelerated or constant speed; and it can make the movement happen instantly (if time is 0) or it can take any amount of time to perform the animation. The slider() option in the time parameter connects the animation time to the slider located above the world, next to the other world controls.
???WHICH EXAMPLE??? 500px