Difference between revisions of "New Action"
Jump to navigation
Jump to search
imported>Andri |
imported>Andri |
||
Line 1: | Line 1: | ||
− | [[image:New action.png| | + | [[image:New action.png|150px]] |
− | [[image:New action additional params.png| | + | [[image:New action additional params.png|150px]] |
<table cellpadding="10" cellspacing="0" border="0" width="100%"> | <table cellpadding="10" cellspacing="0" border="0" width="100%"> |
Revision as of 23:40, 17 June 2011
Definition: | The New action generates a new agent in the cell indicated by the Direction parameter. The new agent has the shape selected in the action's Shape parameter. |
Parameters: | direction, shape |
Additional Parameters: | layer |
Example: | In the Frogger game, the Tunnel agent generates new Trucks to its right, once every 0.6 seconds, with a 25% chance, as long as there is road where it is supposed to create the new car (to avoid piling cars on top of each other). |