Navigation Bar AgentSheets Education R&D Support About Us Manuals Tutorial Movies FAQ Books Classes

Mouse Click Trigger

Definition: The Mouse Click trigger is used to program an agent to respond to a modified or unmodified mouse click.

The rules located in a method labeled with a Mouse Click trigger are executed whenever the executing agent senses the designated mouse click (modified or unmodified), whether the simulation is running or not. The Mouse Click trigger increases the number of ways in which you can interact with your agents.

Parameters: Mouse Click
Example: In the Number Puzzle simulation, a single mouse click with the Arrow Tool on the Digit agent causes it to swap with the empty space next to it. If the Digit is 15, it also highlights the agent before swapping.

Number Puzzle

reference manual | ©2010 AgentSheets, Inc. | contact us