Expressions reference

Expressions can be entered when you see a field with one of these buttons:

  • The left button indicates a “string expression” (a text)
  • The right button indicates a “numerical expression” (a number)

This page is a reference of all expressions that can be used in GDevelop, grouped by the extension, object or behavior they belong too. When Object is written, you should enter an object name. Learn more here about how to write expressions.

Expressions are sometime also called functions, like in mathematics.

Features for all objects

Common features that can be used for all objects in GDevelop. Learn more...

Expression Description
Count(object) Count the number of the specified objects being currently picked in the event
object Object
Expression Description
Object.Angle() Current angle, in degrees, of the object
Object.Distance(object) Distance between two objects
object Object
Object.ForceAngle() Average angle of the forces
Object.ForceLength() Average length of the forces
Object.ForceX() Average X coordinates of forces
Object.ForceY() Average Y coordinates of forces
Object.Height() Height of the object
Object.Layer() Return the name of the layer the object is on
Object.ObjectName() Return the name of the object
Object.ObjectTimerElapsedTime(string) Value of a timer
string Timer's name
Object.SqDistance(object) Square distance between two objects
object Object
Object.Variable(objectvar) Object's variable
objectvar Variable
Object.VariableChildCount(objectvar) Get the number of children from an object
objectvar Variable
Object.VariableString(objectvar) Text of variable of an object
objectvar Variable
Object.Width() Width of the object
Object.X() X position of the object
Object.Y() Y position of the object
Object.ZOrder() Z order of an object

Sprite

Animated object which can be used for most elements of a game Learn more...

Expression Description
Object.Animation() Animation of the object
Object.AnimationName() Name of the animation of the object
Object.AnimationSpeedScale() Animation speed scale
Object.Direction() Direction of the object
Object.Opacity() Opacity
Object.PointX(string) X position of a point
string Name of the point
Object.PointY(string) Y position of a point
string Name of the point
Object.ScaleX() Scale of the width of an object
Object.ScaleY() Scale of the height of an object
Object.Sprite() Animation frame of the object

Standard Conversions

Built-in extension providing standard conversions expressions. Learn more...

Expression Description
LargeNumberToString(number) Convert the result of the expression to text, without using the scientific notation
number Expression to be converted to text
ToDeg(number) Converts the angle, expressed in radians, into degrees
number Angle, in radians
ToNumber(string) Convert the text to a number
string Text to convert to a number
ToRad(number) Converts the angle, expressed in degrees, into radians
number Angle, in degrees
ToString(number) Convert the result of the expression to text
number Expression to be converted to text

Variable features

Built-in extension allowing to manipulate variables Learn more...

Expression Description
GlobalVariable(globalvar) Value of a global variable
globalvar Name of the global variable
GlobalVariableChildCount(globalvar) Get the number of children of a global variable
globalvar Variable
GlobalVariableString(globalvar) Text of a global variable
globalvar Variable
Variable(scenevar) Value of a scene variable
scenevar Variable
VariableChildCount(scenevar) Get the number of children of a scene variable
scenevar Variable
VariableString(scenevar) Text of a scene variable
scenevar Variable

Mouse features

Built-in extension that enables the use of a mouse Learn more...

Expression Description
LastEndedTouchId() Identifier of the last ended touch
LastTouchId() Identifier of the last touch
MouseWheelDelta() Mouse wheel displacement
MouseX(layer, camera) Cursor X position
layer Layer Optional.
camera Camera Optional.
MouseY(layer, camera) Cursor Y position
layer Layer Optional.
camera Camera Optional.
TouchX(number, layer, camera) Touch X position
number Touch identifier
layer Layer Optional.
camera Camera Optional.
TouchY(number, layer, camera) Touch Y position
number Touch identifier
layer Layer Optional.
camera Camera Optional.

Keyboard features

Built-in extension that enables the use of a keyboard Learn more...

Expression Description
LastPressedKey() Get the name of the latest key pressed on the keyboard

Scene management features

Built-in extension allowing to manipulate scenes and providing common features

Expression Description
CurrentSceneName() Name of the current scene
Random(number) Random integer
number Maximum value
RandomFloat(number) Random float
number Maximum value
RandomFloatInRange(number, number) Random float in range
number Minimum value
number Maximum value
RandomInRange(number, number) Random integer in range
number Minimum value
number Maximum value
RandomWithStep(number, number, number) Random value in steps
number Minimum value
number Maximum value
number Step

Time

Built-in extension providing actions and conditions related to time. Learn more...

Expression Description
Time(string) Current time
string Hour: hour - Minutes: min - Seconds: sec - Day of month: mday - Months since January: mon - Year since 1900: year - Days since Sunday: wday - Days since Jan 1st: yday - Timestamp (ms): timestamp“
TimeDelta() Time elapsed since the last image
TimeFromStart() Time elapsed since the beginning of the scene
TimerElapsedTime(string) Value of a scene timer
string Timer's name

Mathematical tools

Built-in extension providing mathematical tools

Expression Description
AngleDifference(number, number) Difference between two angles
number First angle
number Second angle
abs(number) Absolute value
number Expression
acos(number) Arccosine
number Expression
acosh(number) Hyperbolic arccosine
number Expression
asin(number) Arcsine
number Expression
asinh(number) Arcsine
number Expression
atan(number) Arctangent
number Expression
atan2(number, number) 2 argument arctangent (atan2)
number Y
number X
atanh(number) Hyperbolic arctangent
number Expression
cbrt(number) Cube root
number Expression
ceil(number) Round number up to an integer
number Expression
clamp(number, number, number) Restrict a value to a given range
number Value
number Min
number Max
cos(number) Cosine of a number
number Expression
cosh(number) Hyperbolic cosine
number Expression
cot(number) Cotangent of a number
number Expression
csc(number) Cosecant of a number
number Expression
exp(number) Exponential of a number
number Expression
floor(number) Round number down to an integer
number Expression
lerp(number, number, number) Linearly interpolate a to b by x
number a (in a+(b-a) * x)
number b (in a+(b-a) * x)
number x (in a+(b-a) * x)
log(number) Logarithm
number Expression
log10(number) Base-10 logarithm
number Expression
log2(number) Base 2 Logarithm
number Expression
max(number, number) Maximum of two numbers
number First expression
number Second expression
min(number, number) Minimum of two numbers
number First expression
number Second expression
mod(number, number) x mod y
number x (as in x mod y)
number y (as in x mod y)
nthroot(number, number) Nth root of a number
number Number
number N
pow(number, number) Raise a number to power n
number Number
number The exponent (n in “x to the power n”)
round(number) Round a number
number Expression
sec(number) Secant
number Expression
sign(number) Return the sign of a number (1,-1 or 0)
number Expression
sin(number) Sine of a number
number Expression
sinh(number) Hyperbolic sine
number Expression
sqrt(number) Square root of a number
number Expression
tan(number) Tangent of a number
number Expression
tanh(number) Hyperbolic tangent
number Expression
trunc(number) Truncate a number
number Expression

Cameras and layers features

Built-in camera extension Learn more...

Expression Description
CameraHeight(layer, number) Height of a camera of a layer
layer Layer
number Camera number (default : 0)
CameraRotation(layer, number) Angle of a camera of a layer
layer Layer Optional.
number Camera number (default : 0) Optional.
CameraWidth(layer, number) Width of a camera of a layer
layer Layer
number Camera number (default : 0)
CameraX(layer, number) Camera X position
layer Layer Optional.
number Camera number (default : 0) Optional.
CameraY(layer, number) Camera Y position
layer Layer Optional.
number Camera number (default : 0) Optional.
LayerTimeScale(layer) Time scale
layer Layer

Audio

Builtin audio extension Learn more...

Expression Description
GlobalVolume() Global volume value
MusicChannelPitch(number) Music's pitch
number Channel
MusicChannelPlayingOffset(number) Music playing offset
number Channel
MusicChannelVolume(number) Music volume
number Channel
SoundChannelPitch(number) Sound's pitch
number Channel
SoundChannelPlayingOffset(number) Sound playing offset
number Channel
SoundChannelVolume(number) Sound volume
number Channel

Basic internet features

Built-in extension providing network features. Learn more...

Expression Description
GlobalVarToJSON(globalvar) Convert a global variable to JSON
globalvar The global variable to be stringified
ObjectVarToJSON(object, objectvar) Convert an object variable to JSON
object The object with the variable
objectvar The object variable to be stringified
ToJSON(scenevar) Convert a scene variable to JSON
scenevar Scene variable to be stringified

Window features

Built-in extension allowing to manipulate the game window and canvas Learn more...

Expression Description
SceneWindowHeight() Height of the scene window (or scene canvas for HTML5 games)
SceneWindowWidth() Width of the scene window (or scene canvas for HTML5 games)
ScreenHeight() Height of the screen (or the page for HTML5 games in browser)
ScreenWidth() Width of the screen (or the page for HTML5 games in browser)
WindowTitle() Window's title

Text manipulation

Built-in extension providing expressions for manipulating text objects.

Expression Description
FromCodePoint(number) Get character from code point
number Code point
NewLine() Insert a new line
StrAt(string, number) Get a character from a text
string Text
number Position of the character (the first letter is at position 0)
StrFind(string, string) Search in a text (return the position of the result or -1 if not found)
string Text
string Text to search for
StrFindFrom(string, string, number) Search in a text, starting from a position (return the position of the result or -1 if not found)
string Text
string Text to search for
number Position of the first character in the string to be considered in the search
StrLength(string) Length of a text
string Text
StrRFind(string, string) Search in a text from the end (return the position of the result or -1 if not found)
string Text
string Text to search for
StrRFindFrom(string, string, number) Search in a text from the end, starting from a position (return the position of the result or -1 if not found)
string Text
string Text to search for
number Position of the last character in the string to be considered in the search
StrRepeat(string, number) Repeat a text
string Text to repeat
number Repetition count
SubStr(string, number, number) Get a portion of a text
string Text
number Start position of the portion (the first letter is at position 0)
number Length of the portion
ToLowerCase(string) Lowercase a text
string Text
ToUpperCase(string) Uppercase a text
string Text

Advanced control features

Built-in extension providing advanced control features.

Expression Description
GetArgumentAsNumber(string) Get function parameter (also called “argument”) value
string Parameter name
GetArgumentAsString(string) Get function parameter (also called “argument”) text
string Parameter name

Platform (from extension Platform Behavior)

Platform that Platformer characters can run on. Learn more...

No expressions for this behavior.

Platformer character (from extension Platform Behavior)

Controllable character that can jump and run on platforms. Learn more...

Expression Description
Object.PlatformerObject::Acceleration() Acceleration
Object.PlatformerObject::Deceleration() Deceleration
Object.PlatformerObject::Gravity() Get the gravity applied on the object
Object.PlatformerObject::JumpSpeed() Jump speed
Object.PlatformerObject::MaxFallingSpeed() Get the maximum falling speed
Object.PlatformerObject::MaxSpeed() Maximum speed

Destroy when outside of the screen (from extension Destroy Outside Screen Behavior)

Automatically destroy the object when it goes outside of the screen's borders. Learn more...

No expressions for this behavior.


Tiled Sprite (from extension Tiled Sprite Object)

Displays an image repeated over an area Learn more...

Expression Description
Object.Opacity() Opacity

Draggable object (from extension Draggable Behavior)

Allows objects to be moved using the mouse (or touch). Learn more...

No expressions for this behavior.


Top-down movement (4 or 8 directions) (from extension Top-down movement)

The object can be moved left, up, right, and down (and, optionally, diagonally). Learn more...

Expression Description
Object.TopDownMovement::Acceleration() Acceleration of the object
Object.TopDownMovement::Angle() Angle, in degrees, of the movement
Object.TopDownMovement::AngleOffset() Rotation offset applied to the object
Object.TopDownMovement::AngularMaxSpeed() Angular maximum speed of the object
Object.TopDownMovement::Deceleration() Deceleration of the object
Object.TopDownMovement::MaxSpeed() Maximum speed of the object
Object.TopDownMovement::Speed() Speed of the object
Object.TopDownMovement::XVelocity() Speed on the X axis of the movement
Object.TopDownMovement::YVelocity() Speed on the Y axis of the movement

Text (from extension Text object)

Displays a text Learn more...

Expression Description
Object.Angle() Angle
Object.Opacity() Opacity of a Text object
Object.Padding() Padding
Object.ScaleX() X Scale of a Text object
Object.ScaleY() Y Scale of a Text object
Object.String() Text

Particles emitter (from extension Particle system)

Displays a large number of small particles to create visual effects. Learn more...

Expression Description
Object.EmitterAngle() Emission angle
Object.EmitterAngleA() Emission angle A
Object.EmitterAngleB() Emission angle B
Object.EmitterForceMax() Emission maximal force
Object.EmitterForceMin() Emission minimal force
Object.Flow() Flow
Object.NbParticles() Particles number
Object.ParticleAlpha1() Parameter 1 of transparency
Object.ParticleAlpha2() Parameter 2 of transparency
Object.ParticleBlue1() Parameter 1 of blue color
Object.ParticleBlue2() Parameter 2 of blue color
Object.ParticleGravityAngle() Gravity angle
Object.ParticleGravityLength() Gravity value
Object.ParticleGravityX() X Gravity of particles
Object.ParticleGravityY() Y Gravity of particles
Object.ParticleGreen1() Parameter 1 of green color
Object.ParticleGreen2() Parameter 2 of green color
Object.ParticleLifeTimeMax() Maximum lifetime of particles
Object.ParticleLifeTimeMin() Minimum lifetime of particles
Object.ParticleRed1() Parameter 1 of red color
Object.ParticleRed2() Parameter 2 of red color
Object.ParticleSize1() Parameter 1 of size
Object.ParticleSize2() Parameter 2 of size
Object.RendererParam1() Rendering first parameter
Object.RendererParam2() Rendering second parameter
Object.Tank() Capacity
Object.Texture() Name of the image displayed by particles
Object.ZoneRadius() Radius of the emission zone

Panel Sprite ("9-patch") (from extension Panel Sprite (9-patch) Object)

An image with edges and corners that are stretched separately from the full image. Learn more...

Expression Description
Object.Opacity() Opacity

Anchor

Behavior that anchors objects to the window's bounds. Learn more...

No expressions for this behavior.


Shape painter (from extension Primitive drawing)

Allows you to draw simple shapes on the screen Learn more...

No expressions for this object.


Text entry (from extension Text entry object)

Invisible object used to get the text entered with the keyboard Learn more...

Expression Description
Object.String() Text entered with keyboard

Inventory

Provides actions and conditions to add an inventory to your game, with items in memory. Learn more...

Expression Description
Inventory::Count(string, string) Get the number of an item in the inventory
string Inventory name
string Item name

Pathfinding (from extension Pathfinding behavior)

With this, characters will move while avoiding all objects that are flagged as obstacles. Learn more...

Expression Description
Object.Pathfinding::Acceleration() Acceleration of the object on the path
Object.Pathfinding::AngleOffset() Rotation offset applied the object on the path
Object.Pathfinding::AngularMaxSpeed() Angular maximum speed of the object on the path
Object.Pathfinding::CellHeight() Height of the virtual grid
Object.Pathfinding::CellWidth() Width of the virtual grid
Object.Pathfinding::DestinationX() Destination X position
Object.Pathfinding::DestinationY() Destination Y position
Object.Pathfinding::ExtraBorder() Extra border applied the object on the path
Object.Pathfinding::GetNodeX(number) Get next waypoint X position
number Node index (start at 0!)
Object.Pathfinding::GetNodeY(number) Get next waypoint Y position
number Node index (start at 0!)
Object.Pathfinding::LastNodeX() Last waypoint X position
Object.Pathfinding::LastNodeY() Last waypoint Y position
Object.Pathfinding::MaxSpeed() Maximum speed of the object on the path
Object.Pathfinding::NextNodeIndex() Get the index of the next waypoint to reach
Object.Pathfinding::NextNodeX() Get next waypoint X position
Object.Pathfinding::NextNodeY() Get next waypoint Y position
Object.Pathfinding::NodeCount() Get the number of waypoints on the path
Object.Pathfinding::Speed() Speed of the object on the path

Obstacle for pathfinding (from extension Pathfinding behavior)

Flag the object as being an obstacle for pathfinding. Learn more...

Expression Description
Object.PathfindingObstacle::Cost() Obstacle cost

Physics Engine (from extension Physics Engine (deprecated))

Make objects move as if they are subject to the laws of physics. If you're creating a new game, prefer Physics Engine 2.0 Learn more...

Expression Description
Object.Physics::AngularDamping() Angular damping
Object.Physics::AngularVelocity() Angular speed
Object.Physics::LinearDamping() Linear damping
Object.Physics::LinearVelocity() Linear speed
Object.Physics::LinearVelocityX() X component
Object.Physics::LinearVelocityY() Y component
Object.Physics::PolygonScaleX() Collision polygon X scale
Object.Physics::PolygonScaleY() Collision polygon Y scale

BBText (from extension BBCode Text Object)

Displays a rich text label using BBCode markup (allowing to set parts of the text as bold, italic, use different colors and shadows). Learn more...

Expression Description
Object.GetBBText() Get BBCode text
Object.GetFontFamily() Get the base font family
Object.GetFontSize() Get the base font size
Object.GetOpacity() Get the base opacity
Object.GetWrappingWidth() Get the wrapping width

Device sensors

Allow the game to access the sensors of a mobile device. Learn more...

Expression Description
DeviceSensors::AccelerationX() Get the devices acceleration on the X-axis (m/s²)
DeviceSensors::AccelerationY() Get the devices acceleration on the Y-axis (m/s²)
DeviceSensors::AccelerationZ() Get the devices acceleration on the Z-axis (m/s²)
DeviceSensors::OrientationAbsolute() Get if the devices orientation is absolute and not relative
DeviceSensors::OrientationAlpha() Get the devices orientation Alpha (compass)
DeviceSensors::OrientationBeta() Get the devices orientation Beta
DeviceSensors::OrientationGamma() Get the devices orientation Gamma value
DeviceSensors::RotationAlpha() Get the devices rotation Alpha
DeviceSensors::RotationBeta() Get the devices rotation Beta
DeviceSensors::RotationGamma() Get the devices rotation Gamma

Dialogue Tree (Experimental)

Start dialogue trees, made using Yarn, powered by Bondage.js. Experimental extension that can change in the future. Learn more...

Expression Description
DialogueTree::BranchTag(number) Get a tag of the current branch of the running dialogue via its index
number Tag Index Number
DialogueTree::BranchTags() Get the tags of the current branch of the running dialogue
DialogueTree::BranchText() Get the full raw text of the current branch
DialogueTree::BranchTitle() Get the title of the current branch of the running dialogue
DialogueTree::ClippedLineText() Get dialogue line text clipped by the typewriter effect. Use the “Scroll clipped text” action to control the typewriter effect.
DialogueTree::CommandParameter(number) Get the parameters of a command call - «command withParameter anotherParameter»
number parameter Index Number Optional.
DialogueTree::CommandParametersCount() Get the number of parameters in the currently passed command
DialogueTree::HorizontalOptionsList(string) Get the text of all available options from an Options line type as a horizontal list. You can also pass the selected option's cursor string, which by default is →
string Options Selection Cursor
DialogueTree::LineText() Returns the current dialogue line text
DialogueTree::Option(number) Get the text of an option from an Options line type, using the option's Number. The numbers start from 0.
number Option Index Number
DialogueTree::OptionsCount() Get the number of options in an options line type
DialogueTree::SelectedOptionIndex() Get the number of the currently selected option. Use this to help you render the option selection marker at the right place.
DialogueTree::TagParameter(number) Get parameter from a Tag found by the branch contains tag condition
number parameter Index Number Optional.
DialogueTree::Variable(string) Get dialogue state value
string Variable Name
DialogueTree::VerticalOptionsList(string) Get the text of all available options from an Options line type as a vertical list. You can also pass the selected option's cursor string, which by default is →
string Options Selection Cursor
DialogueTree::VisitedBranchTitles() Get a list of all visited branches

Facebook Instant Games

Allow your game to send scores and interact with Facebook Instant Games Learn more...

Expression Description
FacebookInstantGames::PlayerId() Get the player unique identifier
FacebookInstantGames::PlayerName() Get the player name

Filesystem

Access the filesystem of the operating system. Learn more...

Expression Description
FileSystem::DesktopPath() Get the path to the desktop folder.
FileSystem::DocumentsPath() Get the path to the documents folder.
FileSystem::ExecutablePath() Get the path to this games executable folder.
FileSystem::PathDelimiter() Get the operating system agnostic path delimiter.
FileSystem::PicturesPath() Get the path to the pictures folder.
FileSystem::TempPath() Get the path to temp folder.
FileSystem::UserdataPath() Get the path to userdata folder. (For application settings)

Physics Engine 2.0

Simulate realistic object physics, with gravity, forces, joints, etc.

Expression Description
Object.Physics2::AngularDamping() Get the angular damping of an object.
Object.Physics2::AngularVelocity() Get the angular velocity of an object.
Object.Physics2::Density() Get the density of an object.
Object.Physics2::DistanceJointDampingRatio(number) Distance joint damping ratio
number Joint ID
Object.Physics2::DistanceJointFrequency(number) Distance joint frequency
number Joint ID
Object.Physics2::DistanceJointLength(number) Distance joint length
number Joint ID
Object.Physics2::Friction() Get the friction of an object.
Object.Physics2::FrictionJointMaxForce(number) Friction joint maximum force
number Joint ID
Object.Physics2::FrictionJointMaxTorque(number) Friction joint maximum torque
number Joint ID
Object.Physics2::GearJointFirstJoint(number) Gear joint first joint
number Joint ID
Object.Physics2::GearJointRatio(number) Gear joint ratio
number Joint ID
Object.Physics2::GearJointSecondJoint(number) Gear joint second joint
number Joint ID
Object.Physics2::GravityScale() Get the gravity scale of an object.
Object.Physics2::GravityX() Gravity X
Object.Physics2::GravityY() Gravity Y
Object.Physics2::JointFirstAnchorX(number) Joint first anchor X
number Joint ID
Object.Physics2::JointFirstAnchorY(number) Joint first anchor Y
number Joint ID
Object.Physics2::JointReactionForce(number) Joint reaction force
number Joint ID
Object.Physics2::JointReactionTorque(number) Joint reaction torque
number Joint ID
Object.Physics2::JointSecondAnchorX(number) Joint second anchor X
number Joint ID
Object.Physics2::JointSecondAnchorY(number) Joint second anchor Y
number Joint ID
Object.Physics2::LinearDamping() Get the linear damping of an object.
Object.Physics2::LinearVelocity() Get the linear velocity of an object.
Object.Physics2::LinearVelocityX() Get the linear velocity of an object on X axis.
Object.Physics2::LinearVelocityY() Get the linear velocity of an object on Y axis.
Object.Physics2::MassCenterX() Mass center X
Object.Physics2::MassCenterY() Mass center Y
Object.Physics2::MotorJointAngularOffset(number) Motor joint angular offset
number Joint ID
Object.Physics2::MotorJointCorrectionFactor(number) Motor joint correction factor
number Joint ID
Object.Physics2::MotorJointMaxForce(number) Motor joint maximum force
number Joint ID
Object.Physics2::MotorJointMaxTorque(number) Motor joint maximum torque
number Joint ID
Object.Physics2::MotorJointOffsetX(number) Motor joint offset X
number Joint ID
Object.Physics2::MotorJointOffsetY(number) Motor joint offset Y
number Joint ID
Object.Physics2::MouseJointDampingRatio(number) Mouse joint damping ratio
number Joint ID
Object.Physics2::MouseJointFrequency(number) Mouse joint frequency
number Joint ID
Object.Physics2::MouseJointMaxForce(number) Mouse joint maximum force
number Joint ID
Object.Physics2::MouseJointTargetX(number) Mouse joint target X
number Joint ID
Object.Physics2::MouseJointTargetY(number) Mouse joint target Y
number Joint ID
Object.Physics2::PrismaticJointAxisAngle(number) Prismatic joint axis angle
number Joint ID
Object.Physics2::PrismaticJointMaxMotorForce(number) Prismatic joint maximum motor force
number Joint ID
Object.Physics2::PrismaticJointMaxTranslation(number) Prismatic joint maximum translation
number Joint ID
Object.Physics2::PrismaticJointMinTranslation(number) Prismatic joint minimum translation
number Joint ID
Object.Physics2::PrismaticJointMotorForce(number) Prismatic joint motor force
number Joint ID
Object.Physics2::PrismaticJointMotorSpeed(number) Prismatic joint motor speed
number Joint ID
Object.Physics2::PrismaticJointReferenceAngle(number) Prismatic joint reference angle
number Joint ID
Object.Physics2::PrismaticJointSpeed(number) Prismatic joint speed
number Joint ID
Object.Physics2::PrismaticJointTranslation(number) Prismatic joint current translation
number Joint ID
Object.Physics2::PulleyJointFirstGroundAnchorX(number) Pulley joint first ground anchor X
number Joint ID
Object.Physics2::PulleyJointFirstGroundAnchorY(number) Pulley joint first ground anchor Y
number Joint ID
Object.Physics2::PulleyJointFirstLength(number) Pulley joint first length
number Joint ID
Object.Physics2::PulleyJointRatio(number) Pulley joint ratio
number Joint ID
Object.Physics2::PulleyJointSecondGroundAnchorX(number) Pulley joint second ground anchor X
number Joint ID
Object.Physics2::PulleyJointSecondGroundAnchorY(number) Pulley joint second ground anchor Y
number Joint ID
Object.Physics2::PulleyJointSecondLength(number) Pulley joint second length
number Joint ID
Object.Physics2::Restitution() Get the restitution of an object.
Object.Physics2::RevoluteJointAngle(number) Revolute joint current angle
number Joint ID
Object.Physics2::RevoluteJointMaxAngle(number) Revolute joint maximum angle
number Joint ID
Object.Physics2::RevoluteJointMaxMotorTorque(number) Revolute joint maximum motor torque
number Joint ID
Object.Physics2::RevoluteJointMinAngle(number) Revolute joint minimum angle
number Joint ID
Object.Physics2::RevoluteJointMotorSpeed(number) Revolute joint motor speed
number Joint ID
Object.Physics2::RevoluteJointMotorTorque(number) Revolute joint motor torque
number Joint ID
Object.Physics2::RevoluteJointReferenceAngle(number) Revolute joint reference angle
number Joint ID
Object.Physics2::RevoluteJointSpeed(number) Revolute joint angular speed
number Joint ID
Object.Physics2::RopeJointMaxLength(number) Rope joint maximum length
number Joint ID
Object.Physics2::TimeScale() Time scale
Object.Physics2::WeldJointDampingRatio(number) Weld joint damping ratio
number Joint ID
Object.Physics2::WeldJointFrequency(number) Weld joint frequency
number Joint ID
Object.Physics2::WeldJointReferenceAngle(number) Weld joint reference angle
number Joint ID
Object.Physics2::WheelJointAxisAngle(number) Wheel joint axis angle
number Joint ID
Object.Physics2::WheelJointDampingRatio(number) Wheel joint damping ratio
number Joint ID
Object.Physics2::WheelJointFrequency(number) Wheel joint frequency
number Joint ID
Object.Physics2::WheelJointMaxMotorTorque(number) Wheel joint maximum motor torque
number Joint ID
Object.Physics2::WheelJointMotorSpeed(number) Wheel joint motor speed
number Joint ID
Object.Physics2::WheelJointMotorTorque(number) Wheel joint motor torque
number Joint ID
Object.Physics2::WheelJointSpeed(number) Wheel joint speed
number Joint ID
Object.Physics2::WheelJointTranslation(number) Wheel joint current translation
number Joint ID

Tween (from extension Tween animation)

Smoothly animate position, angle, scale and other properties of the object Learn more...

Expression Description
Object.Tween::Progress(string) Progress of a tween (between 0.0 and 1.0)
string Tween Identifier

Video

Displays a video. Learn more...

Expression Description
Object.CurrentTime() Return the current time of a video object (in seconds).
Object.Duration() Return the duration of a video object (in seconds).
Object.Opacity() Return the opacity of a video object
Object.PlaybackSpeed() Return the playback speed of a video object
Object.Volume() Get the volume of a video object, between 0 (muted) and 100 (maximum).