ArcBasicDocs

Command reference

Every command, one search away

712 commands for 2D, 3D, sound, input, networking and more - each with its parameters, many with an example you can open and run.

2D · Program Flow 28

2D · Types 14

2D · Variables 4

2D · Conversions 3

2D · Operators 11

2D · Data 3

2D · Basic 14

2D · Maths 19

2D · Strings 16

2D · Time 7

2D · Banks 17

2D · Files 38

2D · Pathfinding 9

2D · Graphics 47

GraphicsOpens a 2D graphics displayEndGraphicsCloses the graphics displayGraphicsWidthWidth of the displayGraphicsHeightHeight of the displayGraphicsDepthColour depth of the displayGraphicsBufferThe current drawing bufferSetBufferSets the buffer used by drawing commandsBackBufferThe back bufferFrontBufferThe front bufferFlipShows the back bufferClsClears the current bufferClsColorSets the colour used by ClsColorSets the drawing colourColorRedRed component of the drawing colourColorGreenGreen component of the drawing colourColorBlueBlue component of the drawing colourGetColorSets the drawing colour to the pixel at x,yOriginSets the drawing originViewportRestricts drawing to a rectanglePlotDraws a pixelLineDraws a lineRectDraws a rectangleOvalDraws an ovalTextDraws textLocateSets the Print cursor positionVWaitWaits for the vertical blankScanLineCurrent scan lineTotalVidMemTotal video memoryAvailVidMemAvailable video memoryCountGfxModesNumber of display modesGfxModeWidthWidth of a display modeGfxModeHeightHeight of a display modeGfxModeDepthDepth of a display modeGraphicsLostTrue if the display was lostSetGammaSets a gamma ramp entryUpdateGammaApplies gamma changesLoadBufferLoads an image file into a bufferSaveBufferSaves a buffer as an image fileLockBufferLocks a buffer for fast pixel accessUnlockBufferUnlocks a bufferReadPixelReads a pixel as ARGBWritePixelWrites an ARGB pixelReadPixelFastReads a pixel from a locked bufferWritePixelFastWrites a pixel to a locked bufferCopyPixelCopies a pixelCopyPixelFastCopies a pixel between locked buffersCopyRectCopies a rectangle

2D · Fonts 7

2D · Images 32

2D · Keyboard 5

2D · Mouse 14

2D · Joystick 18

2D · Sound 16

2D · Graphics Drivers 6

2D · Movies 6

2D · TCP Networking 11

2D · UDP Networking 9

2D · Multiplayer 14

2D · Joystick Extra 2

3D · Graphics 6

3D · Sound 3

3D · 3D World 12

3D · Camera 15

3D · Lights 4

3D · Meshes 26

3D · Surfaces 28

3D · Brushes 9

3D · Textures 17

3D · Entity Control 16

3D · Entity State 25

3D · Entity Appearance 9

3D · Collisions 19

3D · Picking 15

3D · Animation 10

3D · Terrain 10

3D · Sprites 6

3D · Graphics Drivers 3

3D · Models 10

3D · Shadows 3

3D · Animation Extra 4

3D · Effects 3

3D · Physics 48

PhysicsGravitySets the pull of gravity on dynamic bodiesPhysicsRateHow much time each UpdateWorld simulates, as steps a secondEntityPhysicsGives an entity a physics body: 0 none, 1 static, 2 dynamic, 3 kinematic, 4 triggerGetEntityPhysicsPhysics mode of an entityEntityShapeSets the shape of a physics body: 0 auto, 1 box, 2 sphere, 3 capsule, 4 cylinder, 5 hull, 6 meshAddEntityShapeAdds another shape to a physics bodyEntityPhysicsTypePuts a physics body in a type (1 to 32) for PhysicsCollide and triggersGetEntityPhysicsTypePhysics type of an entityPhysicsCollideSets whether two physics types collideEntityMassSets the mass of a physics bodyEntityFrictionSets how much a physics body grips what it touchesEntityBounceSets how bouncy a physics body is, 0 to 1EntityDampingSets how quickly a physics body slows downEntityGravitySets how strongly gravity pulls a physics body: 1 normal, 0 none, below 0 floats upEntityLockAxesStops a physics body moving along or turning about some axesEntityCCDStops a fast physics body passing through thin wallsEntityCanSleepSets whether a physics body may sleep when it comes to restEntitySleepingTrue if a physics body is resting asleepWakeEntityWakes a sleeping physics bodyApplyForcePushes a physics body during the next UpdateWorldApplyImpulseGives a physics body a sudden pushApplyTorqueTwists a physics body during the next UpdateWorldApplyTorqueImpulseGives a physics body a sudden twistSetEntityVelocitySets how fast a physics body moves, in units a secondEntityVelocityXX speed of a physics body, in units a secondEntityVelocityYY speed of a physics body, in units a secondEntityVelocityZZ speed of a physics body, in units a secondSetEntitySpinSets how fast a physics body turns, in degrees a secondEntitySpinPitchPitch turning speed of a physics body, in degrees a secondEntitySpinYawYaw turning speed of a physics body, in degrees a secondEntitySpinRollRoll turning speed of a physics body, in degrees a secondCountContactsNumber of contacts a physics body had during the last UpdateWorldContactEntityEntity touched by a physics contactContactXWorld X of a physics contactContactYWorld Y of a physics contactContactZWorld Z of a physics contactContactNXX of a physics contact's normalContactNYY of a physics contact's normalContactNZZ of a physics contact's normalContactImpulseHow hard a physics contact pushedTriggerCountNumber of physics bodies inside a triggerTriggerEntityA physics body inside a triggerEntityInTriggerTrue if a physics body is inside a triggerPhysicsLinePickFinds the first physics body along a linePhysicsOverlapNumber of physics bodies touching a spherePhysicsOverlapBoxNumber of physics bodies touching a boxOverlapEntityA physics body found by PhysicsOverlap or PhysicsOverlapBoxPhysicsDebugShows the shapes of physics bodies

3D · Physics Joints 12

3D · Physics Characters 5

3D · Physics Vehicles 6

3D · Physics Ragdolls 2

3D · Physics Soft Bodies 2

3D · Navigation 14