Documentation

WHAT WE GOT

AABB
Physics Environment

Animation
Actions & Animations

Array
Support Classes

Audio
Sounds & Music

Audio Effect
Sounds & Music

Background Audio
Sounds & Music

Bezier
Actions & Animations

Blink
Actions & Animations

Body
Physics Environment

Callback
Actions & Animations

Chain Shape
Physics Environment

Circle Shape
Physics Environment

Color
Support Classes

Delay
Actions & Animations

Device
Support Classes

Director
Essentials

Ease
Actions & Animations

Edge Shape
Physics Environment

Event
Support Classes

Fade
Actions & Animations

Filter
Physics Environment

Fixture
Physics Environment

Jump
Actions & Animations

Label
User Interface

Layer
Essentials

Layer Color
Essentials

Liquid
Actions & Animations

Mass Data
Physics Environment

Menu
User Interface

Menu Image
User Interface

Menu Label
User Interface

Move
Actions & Animations

Numeric
Support Clases

Object Layer
Tiled Maps

Physics Sprite
Physics Environment

Place
Actions & Animations

Point
Support Classes

Polygon Shape
Physics Environment

Repeat
Actions & Animations

Rotate
Actions & Animations

Scale
Actions & Animations

Scene
Essentials

Screen
Support Classes

Sequence
Actions & Animations

Shape
Physics Environment

Shuffle
Actions & Animations

Size
Support Classes

Skew
Actions & Animations

Spawn
Actions & Animations

Split
Actions & Animations

Sprite
Essentials

Sprite Batch
Essentials

Sprite Frame Cache
Essentials

Tile Layer
Tiled Maps

Tile Map
Tiled Maps

Tile Set
Tiled Maps

Tint
Actions & Animations

Touch
Support Classes

Turn
Actions & Animations

Twirl
Actions & Animations

Visibility
Actions & Animations

Wave
Actions & Animations

Wiggle
Actions & Animations

World
Physics Environment

ACTIONS & ANIMATIONS

Fade

The Fade class provides an action that fades an object modifying its opacity property.

In

Creates a Fade action that fades in an object and modifies its opacity property from 0 to 255:

fade_in_action = Fade.in
character.run_action fade_in_action

Options

duration: - Float - Default: 0.3
Sets the total duration time of the Action.

Out

Creates a Fade action that fades out an object and modifies its opacity property from 255 to 0:

fade_out_action = Fade.out
character.run_action fade_out_action

Options

duration: - Float - Default: 0.3
Sets the total duration time of the Action.

To

Creates a Fade action that fades an object and modifies its opacity property to a custom one:

fade_to_action = Fade.to opacity:25
character.run_action fade_to_action

Options

duration: - Float - Default: 0.3
Sets the total duration time of the Action.

Watch out!

This action doesn't support "reverse"