Object_Picture Class
A game object used for pictures in a scene.
Item Index
Methods
Methods
restore
-
data
Restores the game object from a data-bundle.
Parameters:
-
data
Object- The data-bundle.
toDataBundle
()
Object
Serializes the object into a data-bundle.
Returns:
The data-bundle.
Properties
angle
Number
The rotation-angle of the picture in degrees. The rotation center depends on the anchor-point.
animator
vn.Component_Animator
The object's animator-component to execute different kind of animations like move, rotate, etc. on it.
color
gs.Color
The color of the object used for the visual presentation.
domain
String
The domain the object belongs to.
effects
Object
Contains different kinds of effects which can be activated for the object.
image
String
The object's image used for visual presentation.
mask
gs.Mask
The object's mask to execute masking-effects on it.
srcRect
gs.Rect
The object's source rectangle. It controls which part of the object's image is used for visual presentation.
tone
gs.Tone
The color tone of the object used for the visual presentation.
visual
gs.Component_Sprite | gs.Component_TilingSprite | gs.Component_Frame | gs.Component_ThreePartImage | gs.Component_Quad
The object's visual-component to display the game object on screen.