Sprite

From GiderosMobile
Revision as of 08:26, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === <br /> The `Sprite` class is the base class for all objects that can...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Supported platforms:
Available since: Gideros 2011.6

Description


The `Sprite` class is the base class for all objects that can be placed on the scene tree. It is the basic scene tree building block.
A sprite can contain child sprites which makes the scene tree hierarchy. Transformations such as translation, rotation, scaling and color transforms propogates its effect to all of its children.
The drawing order is defined by the order of children. First child is drawn first and last child is drawn last. It is possible to change the drawing order by modifying the order of child list.
A `Sprite` instance can exists without attaching the scene tree.
An unattached sprite can receive `Event.ENTER_FRAME` event but it will only receive mouse and touch events when it is attached to the scene tree.
{|- | style="width: 50%;"|

Methods

| style="width: 50%;"|

Events

Constants

|}