What it does
JointPulleyPrepare brings a 2DPhysics object into being: it is how the rest of the program comes to have one. It takes spriteID1 (an integer), spriteID2 (an integer), ratio (a float) and colConnected (an integer), and returns nothing.
Syntax
JointPulleyPrepare(spriteID1 integer, spriteID2 integer, ratio float, colConnected integer)Parameters
| Name | Type |
|---|---|
| spriteID1 | integer |
| spriteID2 | integer |
| ratio | float |
| colConnected | integer |
Every form returns
nothing
Example · generated
JointPulleyPrepare(1, 1, 1.0, 1)DO Sync()LOOPJointPulleyPrepare is called with values of the types its signature asks for. 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.