|
|
Show Message Action
|
||
| Definition: | The Show Message action shows a user-defined message defined by its string parameter in a dialog like the own shown below for a "Game Over!" message.
![]() |
|
| Parameters: | string | |
| Example: | In the Space Invaders simulation, when the Cannon agent is hit by an alien bomb, it changes to the exploding depiction, waits some time, erases itself, brings up the message "Your cannon was destroyed. Game over!" and resets the simulation.
![]() |
|