What it does
Skeleton2DBoneAngle takes iSkeleton (an integer) and bone (an integer), and answers a float. That is the first of 2 forms.
Syntax
1
Skeleton2DBoneAngle(iSkeleton integer, bone integer) → float2
Skeleton2DBoneAngle(iSkeleton integer, bone integer, r float)Parameters
| Name | Type | In forms |
|---|---|---|
| iSkeleton | integer | all |
| bone | integer | all |
| r | float | 2 |
What each form returns
| 1 | Skeleton2DBoneAngle(1, 1) | float |
| 2 | Skeleton2DBoneAngle(1, 1, 1.0) | nothing |
Example · generated
Form 1, the command hands back the id
DO Print(Skeleton2DBoneAngle(1, 1)) Sync()LOOPForm 2, you choose the id yourself
Skeleton2DBoneAngle(1, 1, 1.0)DO Sync()LOOPSkeleton2DBoneAngle 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.