Skip to content

JeyDotC/construct2-SimpleThree_Sprite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleThree Sprite

Type: Behavior

Converts a sprite in a 3D plane with animations.

Properties

Name Type Description Options
Elevation integer How height is this sprite elevated from ground in 2D pixels.
Rotation X float Rotation on the X axis in degrees.
Rotation Z float Rotation on the Z axis in degrees.
Facing Camera combo Make this sprite constantly be oriented towards the camera. Default value: No - No
- Yes
- Only Y Axis
Advanced
Enable 2D Render combo If whether or not this object's 2D render will happen, disabling it saves a lot of processing power. Default value: Disabled - Disabled
- Enabled
Magnification Filter combo How the texture is sampled when a texel covers more than one pixel. Default value: Linear - Linear
- Nearest
Minification Filter combo How the texture is sampled when a texel covers less than one pixel. Default value: Linear Filter - Nearest Filter
- Nearest Mipmap Nearest Filter
- Nearest Mipmap Linear Filter
- Linear Filter
- Linear Mipmap Nearest Filter
- Linear Mipmap Linear Filter

ACES

Actions

Name Description Parameters
Transform
Set Sprite Elevation from 2D pixels Set the Sprite's Elevation from 2D pixel length. - Elevation number: The new sprite's elevation in 2D Pixels.
Set Sprite X axis rotation Set the Sprite's X axis rotation in degrees. - Rotation X number: The sprite's X axis rotation in degrees.
Set Sprite Z Axis Rotation Set the Sprite's Z axis rotation in degrees. - Rotation Z number: The sprite's Z axis rotation in degrees.
Set Facing Camera Set if this sprite should face the camera constantly. - Facing Camera Option combo: If this sprite should constantly face the camera. Options: (No, Yes, Only Y Axis)

Conditions

Name Description Parameters
Transform
Compare Elevation Compare the Sprite's current Elevation. - Comparison comparison:
- Value number = 0: Value to compare Elevation with
Compare Rotation X Compare the Sprite's current Rotation X. - Comparison comparison:
- Angle (degrees) number = 0: Angle to compare Rotation X with in degrees
Compare Rotation Z Compare the Sprite's current Rotation Z. - Comparison comparison:
- Angle (degrees) number = 0: Angle to compare Rotation Z with in degrees

Expressions

Name Type Description Parameters
Transform
Elevation
Usage: MyObject.SimpleThree Sprite.Elevation
number The Sprite Elevation in Pixels.
Rotation X
Usage: MyObject.SimpleThree Sprite.RotationX
number The Sprite Rotation X in Degrees.
Rotation Z
Usage: MyObject.SimpleThree Sprite.RotationZ
number The Sprite Rotation Z in Degrees.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published