活动#
介绍#
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.
以下是可用块的列表:
when started — Runs the attached stack of blocks when the project starts.
何时开始#
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.
何时开始帽子块。#
当开始
参数 |
描述 |
|---|---|
该块没有参数。 |
例子
当开始
[Fly for 1 second when the project starts.]
起飞至 [500] [毫米 v] ▶
等待 [1] 秒
土地 ▶