Skeleton2DDepth

Family: Skeleton · 2 forms

What it does

Skeleton2DDepth takes iSkeleton (an integer), and answers an integer. That is the first of 2 forms.

Syntax

1
Skeleton2DDepth(iSkeleton integer) → integer
2
Skeleton2DDepth(iSkeleton integer, depth integer)

Parameters

NameTypeIn forms
iSkeletonintegerall
depthinteger2

What each form returns

1Skeleton2DDepth(1)integer
2Skeleton2DDepth(1, 1)nothing

Example · generated

Form 1, the command hands back the id

DO  Print(Skeleton2DDepth(1))  Sync()LOOP

Form 2, you choose the id yourself

Skeleton2DDepth(1, 1)DO  Sync()LOOP

Skeleton2DDepth is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

34 commands in Skeleton