Class: Game_Picture

Game_Picture()

new Game_Picture()

The game object class for a picture.
Properties:
Name Type Description
_name String
_origin Number
_x Number
_y Number
_scaleX Number
_scaleY Number
_opacity Number
_blendMode Number
_targetX Number
_targetY Number
_targetScaleX Number
_targetScaleY Number
_targetOpacity Number
_duration Number
_tone Array.<Number>
_toneTarget Array.<Number>
_toneDuration Number
_angle Number
_rotationSpeed Number

Methods

angle() → {Number}

Returns the angle of the game picture.
Returns:
Type
Number

blendMode() → {Number}

Returns the blend mode of the game picture.
Returns:
Type
Number

erase()

Erases the game picture.

initBasic()

initialize()

initRotation()

initTarget()

initTone()

move(origin, x, y, scaleX, scaleY, opacity, blendMode, duration)

Parameters:
Name Type Description
origin Number
x Number
y Number
scaleX Number
scaleY Number
opacity Number
blendMode Number
duration Number

name() → {String}

Returns the name of the game picture.
Returns:
Type
String

opacity() → {Number}

Returns the opacity of the game picture.
Returns:
Type
Number

origin() → {Number}

Returns the origin of the game picture.
Returns:
Type
Number

rotate(speed)

Parameters:
Name Type Description
speed Number

scaleX() → {Number}

Returns x scale of the game picture.
Returns:
Type
Number

scaleY() → {Number}

Returns the y scale of the game picture.
Returns:
Type
Number

show(name, origin, x, y, scaleX, scaleY, opacity, blendMode)

Parameters:
Name Type Description
name String
origin Number
x Number
y Number
scaleX Number
scaleY Number
opacity Number
blendMode Number

tint(tone, duration)

Parameters:
Name Type Description
tone Array.<number>
duration Number

tone() → {Array.<Number>}

Returns the tone of the game picture.
Returns:
Type
Array.<Number>

update()

Updates the game picture.

updateMove()

Updates the movement of the game picture.

updateRotation()

Updates the rotation of the game picture.

updateTone()

Updates the tone of the game picture.

x() → {Number}

Returns the picture x coordinate.
Returns:
Type
Number

y() → {Number}

Returns the picture y coordinate.
Returns:
Type
Number