API Docs for:
Show:

Object_Live2DCharacter Class

Module: gs

A game object for an animated Live2D visual novel character.

Methods

toDataBundle

() Object

Serializes the object into a data-bundle.

Returns:

Object:

The data-bundle.

Properties

angle

Number

The rotation-angle of the character 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.

behavior

vn.Component_CharacterBehavior

The character's behavior component which contains the character-specific logic.

color

gs.Color

The color of the object used for the visual presentation.

expression

gs.Live2DExpression

The Live2D expression.

model

gs.Live2DModel

The Live2D model used for the visual presentation.

modelName

String

The resource name of a Live2D model used for the visual presentation.

motion

gs.Live2DMotion

The Live2D motion.

motion

gs.Live2DMotionGroup

The Live2D motion group.

rid

Number

The ID of the character-record used.

tone

gs.Tone

The color tone of the object used for the visual presentation.

visual

gs.Component_Sprite

The object's visual-component to display the game object on screen.