Llamar

From StarLogo Nova Wiki
This page is a translated version of the page Call and the translation is 17% complete.
Other languages:
The Call Block

Agent calls a defined procedure to follow from the drop down menu.

Syntax

Inputs in this block:

  1. a created procedure from the drop down menu

Example

Call example gif
Call example code

In this version of the snake game, the direction the snake moves is determined by which key is typed (as instructed by the procedure block). To carry out these instructions once they have been encased in a procedure we must call the procedure, as has been done for both ‘read keyboard input’ and ‘update snake tail.’

Related Blocks