Open Dev Kit Documentation :: Game :: Actor
Game.ActorActor in the game world, capable of playing different poses and layers of sprites
Functions
- Play Pose ( Name String, Speed Float, Duration Float, Limit Integer, Start Time Float, End Time Float )
- Play a pose sequence with the actor or replace it if it already exists
- Stop Pose ( Name String )
- Stops a pose sequence with the actor if it exists
- Get Pose Duration ( Name String ) Float
- Returns longest sequence duration of the specified pose for all of the actor's layers' sprites (relies on cached layers if pose is playing)
- Get Attachment Positions ( Attachment Index Integer ) 3D Vector Array
- Returns an array of world positions of the actor's attachments for a particular index
- Get Attachment Orientations ( Attachment Index Integer ) 4D Vector (Quaternion) Array
- Returns an array of world orientations of the actor's attachments for a particular index
Properties
- Tint Color Color HDR
- tint color applied to the actor
- Tint Specular Color HDR
- specular tint color applied to the actor
- Layers Actor Layer Array
- layers attached to the actor
- Poses Actor Pose Array
- poses for the actor
If you think anything is missing, please feel free to: submit documentation feedback on this page