Eventos#

Introducción#

An event is a starting signal for a set of blocks. Events blocks in VEXcode AIR let you trigger code as soon as a project starts. Multiple start-event blocks can be added to a single project to launch different actions simultaneously, allowing several parts of a program to run right from the beginning.

A continuación se muestra una lista de bloques disponibles:

  • when started — Runs the attached stack of blocks when the project starts.

cuando empezó#

The when started hat block starts running the blocks below it when the project begins. Every project needs at least one when started block — without it, the blocks below it will not run. Multiple when started blocks can be used to run different sets of blocks at the same time.

El bloque de sombreros Cuando se inició.#
cuando empezó

Parámetros

Descripción

Este bloque no tiene parámetros.

Ejemplo

cuando empezó
[Fly for 1 second when the project starts.]
despegar a [500] [mm v] ▶
esperar [1] segundos
tierra ▶