Skip to content
This repository was archived by the owner on Dec 20, 2019. It is now read-only.

Effects

Javier Torrente edited this page Feb 12, 2014 · 1 revision

Effects transform the game state in different ways.

Go Scene

Changes the current scene.

Example

{
    class:goscene,
    name:menuscene
}

Transform

Applies a transformation the owner scene element on a given time. This effect can be used to move, scale or rotate a scene element, or to change its color.

Spin

Spins (rotates 360º) a number of times a scene element on a given time.

Video

Shows a full screen video.

Change Renderer

Changes the renderer of the scene element this effect is attached to. It admits two parameters:

  1. setInitialRenderer If set to true, this effect will restore the initial renderer this element had, even if it was null. In that case, the newRenderer param is omitted. The default value is true.

  2. newRenderer Any of the renderers currently being supported in ead2. If setInitialRenderer is set to false, this renderer will be set up for this scene element.

You can see how it works by running the techdemo

Clone this wiki locally