Delayed-Message Action

From AgentCubes
Revision as of 20:00, 5 April 2012 by imported>Mike
Jump to navigation Jump to search

Delayed message.png

Definition: The delayed-message action will trigger a message in this agent after a specified amount of time. Note that it is not possible to send delayed messages to other agents. 
Parameters: method, time
Example 1:

Fading shield:  Image you are creating somesort of space based action game where there are obstacles that you must avoid or take damage.  In this sort of game you could use the delayed message action to create a shield which would activae upon a key press condition and would be set to fade after a certain amount of time with the delayed action.