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

From AgentCubes
Jump to navigation Jump to search
imported>Andri
imported>Andri
Line 6: Line 6:
 
<tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Definition:</b></td>
 
<td align="left" valign="top" width="80"><b>Definition:</b></td>
<td align="left" valign="top" width="100%">The <strong>Move-Random-On</strong> action lets an agent move randomly onto any of its immediate neighbors that have a shape displayed in the [[Shape parameter]]. The agent chooses one of its nine qualifying neighbors (the eight around it and the current location) to move onto at random.</td>
+
<td align="left" valign="top" width="100%">The <strong>Change</strong> action changes the shape (look) of the agent in the cell indicated by the [[Direction parameter]] to the depiction displayed in the action's [[Shape parameter]]. The dot (.) refers to the agent itself, which should be the way Change should be used: changing yourself to have a different shape. The Change action is useful for creating animations or visually changing the state of an agent.
 +
</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
 
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
<td align="left" valign="top" width="100%">[[Shape parameter|shape]]</td>
+
<td align="left" valign="top" width="100%">[[Direction parameter|direction]], [[Shape parameter|shape]]</td>
</tr>
 
<tr>
 
<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>
 
</tr>
 
<tr>
 
<tr>

Revision as of 23:27, 17 June 2011

Move random on action.png

Move random on action additional params.png

Definition: The Change action changes the shape (look) of the agent in the cell indicated by the Direction parameter to the depiction displayed in the action's Shape parameter. The dot (.) refers to the agent itself, which should be the way Change should be used: changing yourself to have a different shape. The Change action is useful for creating animations or visually changing the state of an agent.
Parameters: direction, shape
Example: ???WHICH EXAMPLE??? 500px