Difference between revisions of "Sprite"

From GiderosMobile
 
(13 intermediate revisions by 2 users not shown)
Line 12: Line 12:
 
The drawing order is defined by the order of children. The first child is drawn first and the last child is drawn last. It is possible to change the drawing order by modifying the order of child list.
 
The drawing order is defined by the order of children. The first child is drawn first and the last child is drawn last. It is possible to change the drawing order by modifying the order of child list.
  
A Sprite instance can exist without attaching the scene tree.
+
A Sprite instance can exist without attaching it to 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.
 
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.
Line 19: Line 19:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
[[Sprite.new]] ''creates a new Sprite object''<br/><!-- GIDEROSMTD:Sprite.new() creates a new Sprite object -->
+
[[Sprite.new]] ''creates a new Sprite object''<br/><!--GIDEROSMTD:Sprite.new() creates a new Sprite object-->
[[Sprite:addChild]] ''adds a sprite as a child''<br/><!-- GIDEROSMTD:Sprite:addChild(child) adds a sprite as a child -->
+
[[Sprite:addChild]] ''adds a sprite as a child''<br/><!--GIDEROSMTD:Sprite:addChild(child) adds a sprite as a child-->
[[Sprite:addChildAt]] ''add a sprite as a child at the index position specified''<br/><!-- GIDEROSMTD:Sprite:addChildAt(child,index) add a sprite as a child at the index position specified -->
+
[[Sprite:addChildAt]] ''adds a sprite as a child at the index position specified''<br/><!--GIDEROSMTD:Sprite:addChildAt(child,index) adds a sprite as a child at the index position specified-->
[[Sprite:clearBlendMode]] ''clears the blending mode''<br/><!-- GIDEROSMTD:Sprite:clearBlendMode() clears the blending mode -->
+
[[Sprite:clearBlendMode]] ''clears the blending mode''<br/><!--GIDEROSMTD:Sprite:clearBlendMode() clears the blending mode-->
[[Sprite:contains]] ''determines whether the specified sprite is contained in the subtree of this sprite''<br/><!-- GIDEROSMTD:Sprite:contains(child) determines whether the specified sprite is contained in the subtree of this sprite -->
+
[[Sprite:clone]] ''duplicate this sprite into an independant copy''<br/><!--GIDEROSMTD:Sprite:clone() duplicate this sprite into an independant copy-->
[[Sprite:get]] ''gets the specified property by its name''<br/><!-- GIDEROSMTD:Sprite:get(param) gets the specified property by its name -->
+
[[Sprite:contains]] ''determines whether the specified sprite is contained in the subtree of this sprite''<br/><!--GIDEROSMTD:Sprite:contains(child) determines whether the specified sprite is contained in the subtree of this sprite-->
[[Sprite:getAlpha]] ''returns the alpha transparency of this sprite''<br/><!-- GIDEROSMTD:Sprite:getAlpha() returns the alpha transparency of this sprite -->
+
[[Sprite:get]] ''gets the specified property by its name''<br/><!--GIDEROSMTD:Sprite:get(param) gets the specified property by its name-->
[[Sprite:getAnchorPosition]] ''Returns anchor position of Sprite''<br/><!-- GIDEROSMTD:Sprite:getAnchorPosition() Returns anchor position of Sprite -->
+
[[Sprite:getAlpha]] ''returns the alpha transparency of this sprite''<br/><!--GIDEROSMTD:Sprite:getAlpha() returns the alpha transparency of this sprite-->
[[Sprite:getBounds]] ''returns the bounds as it appears in another sprite's coordinate system''<br/><!-- GIDEROSMTD:Sprite:getBounds(targetSprite) returns the bounds as it appears in another sprite's coordinate system -->
+
[[Sprite:getAnchorPoint]] ''returns anchor position''<br/><!--GIDEROSMTD:Sprite:getAnchorPoint() returns anchor position-->
[[Sprite:getChildAt]] ''returns the child sprite that exists at the specified index''<br/><!-- GIDEROSMTD:Sprite:getChildAt(index) returns the child sprite that exists at the specified index -->
+
[[Sprite:getAnchorPosition]] ''returns anchor position''<br/><!--GIDEROSMTD:Sprite:getAnchorPosition() returns anchor position-->
[[Sprite:getChildIndex]] ''returns the index of the specified child sprite''<br/><!-- GIDEROSMTD:Sprite:getChildIndex(child) returns the index of the specified child sprite -->
+
[[Sprite:getBounds]] ''returns the bounds as it appears in another sprite coordinate system''<br/><!--GIDEROSMTD:Sprite:getBounds(targetSprite) returns the bounds as it appears in another sprite coordinate system-->
[[Sprite:getChildrenAtPoint]] ''returns the children sprites that corresponds to the given screen coordinates''<br/><!-- GIDEROSMTD:Sprite:getChildrenAtPoint(x,y,visible,nosubs) returns the children sprites that corresponds to the given screen coordinates -->
+
[[Sprite:getChildAt]] ''returns the child sprite that exists at the specified index''<br/><!--GIDEROSMTD:Sprite:getChildAt(index) returns the child sprite that exists at the specified index-->
[[Sprite:getClip]] <br/><!-- GIDEROSMTD:Sprite:getClip() -->
+
[[Sprite:getChildIndex]] ''returns the index of the specified child sprite''<br/><!--GIDEROSMTD:Sprite:getChildIndex(child) returns the index of the specified child sprite-->
[[Sprite:getColorTransform]] ''returns the red, green, blue and alpha channel multipliers''<br/><!-- GIDEROSMTD:Sprite:getColorTransform() returns the red, green, blue and alpha channel multipliers -->
+
[[Sprite:getChildrenAtPoint]] ''returns the children sprites that corresponds to the given screen coordinates''<br/><!--GIDEROSMTD:Sprite:getChildrenAtPoint(x,y,visible,nosubs) returns the children sprites that corresponds to the given screen coordinates-->
[[Sprite:getDrawCount]] ''returns the number of Sprites actually drawn each frame on this subtree''<br/><!-- GIDEROSMTD:Sprite:getDrawCount() returns the number of Sprites actually drawn each frame on this subtree -->
+
[[Sprite:getClip]] returns the coordinates of the Sprite clip range if set with setClip<br/><!--GIDEROSMTD:Sprite:getClip() returns the coordinates of the Sprite clip range if set with setClip-->
[[Sprite:getHeight]] ''returns the height''<br/><!-- GIDEROSMTD:Sprite:getHeight(withoutTransform) returns the height -->
+
[[Sprite:getColorTransform]] ''returns the red, green, blue and alpha channel multipliers''<br/><!--GIDEROSMTD:Sprite:getColorTransform() returns the red, green, blue and alpha channel multipliers-->
[[Sprite:getLayoutConstraints]] ''get the current layout constraints''<br/><!-- GIDEROSMTD:Sprite:getLayoutConstraints() get the current layout constraints -->
+
[[Sprite:getDrawCount]] ''returns the number of Sprites actually drawn each frame on this subtree''<br/><!--GIDEROSMTD:Sprite:getDrawCount() returns the number of Sprites actually drawn each frame on this subtree-->
[[Sprite:getLayoutInfo]] ''get information of the current layout''<br/><!-- GIDEROSMTD:Sprite:getLayoutInfo() get information of the current layout -->
+
[[Sprite:getHeight]] ''returns the height''<br/><!--GIDEROSMTD:Sprite:getHeight(withoutTransform) returns the height-->
[[Sprite:getLayoutParameters]] ''get the current layout parameters''<br/><!-- GIDEROSMTD:Sprite:getLayoutParameters() get the current layout parameters -->
+
[[Sprite:getLayoutConstraints]] ''gets the current layout constraints''<br/><!--GIDEROSMTD:Sprite:getLayoutConstraints() gets the current layout constraints-->
[[Sprite:getMatrix]] ''returns the transformation matrix of the sprite''<br/><!-- GIDEROSMTD:Sprite:getMatrix() returns the transformation matrix of the sprite -->
+
[[Sprite:getLayoutInfo]] ''gets information of the current layout''<br/><!--GIDEROSMTD:Sprite:getLayoutInfo() gets information of the current layout-->
[[Sprite:getNumChildren]] ''returns the number of children of this sprite''<br/><!-- GIDEROSMTD:Sprite:getNumChildren() returns the number of children of this sprite -->
+
[[Sprite:getLayoutParameters]] ''gets the current layout parameters''<br/><!--GIDEROSMTD:Sprite:getLayoutParameters() gets the current layout parameters-->
[[Sprite:getParent]] ''returns the parent sprite''<br/><!-- GIDEROSMTD:Sprite:getParent() returns the parent sprite -->
+
[[Sprite:getMatrix]] ''returns the transformation matrix of the sprite''<br/><!--GIDEROSMTD:Sprite:getMatrix() returns the transformation matrix of the sprite-->
[[Sprite:getPosition]] ''gets the x,y and z coordinates of the sprite''<br/><!-- GIDEROSMTD:Sprite:getPosition() gets the x,y and z coordinates of the sprite -->
+
[[Sprite:getNumChildren]] ''returns the number of children of this sprite''<br/><!--GIDEROSMTD:Sprite:getNumChildren() returns the number of children of this sprite-->
[[Sprite:getRotation]] ''returns the rotation of the sprite in degrees''<br/><!-- GIDEROSMTD:Sprite:getRotation() returns the rotation of the sprite in degrees -->
+
[[Sprite:getParent]] ''returns the parent sprite''<br/><!--GIDEROSMTD:Sprite:getParent() returns the parent sprite-->
[[Sprite:getRotationX]] ''returns the rotation of the sprite around x axis in degrees''<br/><!-- GIDEROSMTD:Sprite:getRotationX() returns the rotation of the sprite around x axis in degrees -->
+
[[Sprite:getPosition]] ''gets the x,y and z coordinates of the sprite''<br/><!--GIDEROSMTD:Sprite:getPosition() gets the x,y and z coordinates of the sprite-->
[[Sprite:getRotationY]] ''returns the rotation of the sprite around y axis in degrees''<br/><!-- GIDEROSMTD:Sprite:getRotationY() returns the rotation of the sprite around y axis in degrees -->
+
[[Sprite:getRotation]] ''returns the rotation of the sprite in degrees''<br/><!--GIDEROSMTD:Sprite:getRotation() returns the rotation of the sprite in degrees-->
[[Sprite:getScale]] ''returns the horizontal, vertical and z scales of the sprite''<br/><!-- GIDEROSMTD:Sprite:getScale() returns the horizontal, vertical and z scales of the sprite -->
+
[[Sprite:getRotationX]] ''returns the rotation of the sprite around x axis in degrees''<br/><!--GIDEROSMTD:Sprite:getRotationX() returns the rotation of the sprite around x axis in degrees-->
[[Sprite:getScaleX]] ''returns the horizontal scale of the sprite''<br/><!-- GIDEROSMTD:Sprite:getScaleX() returns the horizontal scale of the sprite -->
+
[[Sprite:getRotationY]] ''returns the rotation of the sprite around y axis in degrees''<br/><!--GIDEROSMTD:Sprite:getRotationY() returns the rotation of the sprite around y axis in degrees-->
[[Sprite:getScaleY]] ''returns the vertical scale of the sprite''<br/><!-- GIDEROSMTD:Sprite:getScaleY() returns the vertical scale of the sprite -->
+
[[Sprite:getScale]] ''returns the horizontal, vertical and z scales of the sprite''<br/><!--GIDEROSMTD:Sprite:getScale() returns the horizontal, vertical and z scales of the sprite-->
[[Sprite:getScaleZ]] ''returns the scale on z axis of the sprite''<br/><!-- GIDEROSMTD:Sprite:getScaleZ() returns the scale on z axis of the sprite -->
+
[[Sprite:getScaleX]] ''returns the horizontal scale of the sprite''<br/><!--GIDEROSMTD:Sprite:getScaleX() returns the horizontal scale of the sprite-->
[[Sprite:getSkew]] <br/><!-- GIDEROSMTD:Sprite:getSkew() -->
+
[[Sprite:getScaleY]] ''returns the vertical scale of the sprite''<br/><!--GIDEROSMTD:Sprite:getScaleY() returns the vertical scale of the sprite-->
[[Sprite:getSkewX]] <br/><!-- GIDEROSMTD:Sprite:getSkewX() -->
+
[[Sprite:getScaleZ]] ''returns the scale on z axis of the sprite''<br/><!--GIDEROSMTD:Sprite:getScaleZ() returns the scale on z axis of the sprite-->
[[Sprite:getSkewY]] <br/><!-- GIDEROSMTD:Sprite:getSkewY() -->
+
[[Sprite:getSize]] returns the width and height of the Sprite<br/><!--GIDEROSMTD:Sprite:getSize() returns the width and height of the Sprite-->
[[Sprite:getWidth]] ''returns the width''<br/><!-- GIDEROSMTD:Sprite:getWidth(withoutTransform) returns the width -->
+
[[Sprite:getSkew]] returns the x and y skew parameters of the Sprite<br/><!--GIDEROSMTD:Sprite:getSkew() returns the x and y skew parameters of the Sprite-->
[[Sprite:getX]] ''returns the x coordinate of the sprite''<br/><!-- GIDEROSMTD:Sprite:getX() returns the x coordinate of the sprite -->
+
[[Sprite:getSkewX]] returns the x skew parameters of the Sprite<br/><!--GIDEROSMTD:Sprite:getSkewX() returns the x skew parameters of the Sprite-->
[[Sprite:getY]] ''returns the y coordinate of the sprite''<br/><!-- GIDEROSMTD:Sprite:getY() returns the y coordinate of the sprite -->
+
[[Sprite:getSkewY]] returns the y skew parameters of the Sprite<br/><!--GIDEROSMTD:Sprite:getSkewY() returns the y skew parameters of the Sprite-->
[[Sprite:getZ]] ''returns the z coordinate of the sprite''<br/><!-- GIDEROSMTD:Sprite:getZ() returns the z coordinate of the sprite -->
+
[[Sprite:getWidth]] ''returns the width''<br/><!--GIDEROSMTD:Sprite:getWidth(withoutTransform) returns the width-->
[[Sprite:globalToLocal]] ''converts the x,y coordinates from the global to the sprite's (local) coordinates''<br/><!-- GIDEROSMTD:Sprite:globalToLocal(x,y) converts the x,y coordinates from the global to the sprite's (local) coordinates -->
+
[[Sprite:getX]] ''returns the x coordinate of the sprite''<br/><!--GIDEROSMTD:Sprite:getX() returns the x coordinate of the sprite-->
[[Sprite:hitTestPoint]] ''checks the given coordinates is in bounds of the sprite''<br/><!-- GIDEROSMTD:Sprite:hitTestPoint(x,y,shapeFlag) checks the given coordinates is in bounds of the sprite -->
+
[[Sprite:getY]] ''returns the y coordinate of the sprite''<br/><!--GIDEROSMTD:Sprite:getY() returns the y coordinate of the sprite-->
[[Sprite:isVisible]] ''returns the visibility of sprite''<br/><!-- GIDEROSMTD:Sprite:isVisible() returns the visibility of sprite -->
+
[[Sprite:getZ]] ''returns the z coordinate of the sprite''<br/><!--GIDEROSMTD:Sprite:getZ() returns the z coordinate of the sprite-->
[[Sprite:localToGlobal]] ''converts the x,y coordinates from the sprite's (local) coordinates to the global coordinates''<br/><!-- GIDEROSMTD:Sprite:localToGlobal(x,y) converts the x,y coordinates from the sprite's (local) coordinates to the global coordinates -->
+
[[Sprite:globalToLocal]] ''converts the x,y coordinates from the global to the sprite (local) coordinates''<br/><!--GIDEROSMTD:Sprite:globalToLocal(x,y) converts the x,y coordinates from the global to the sprite (local) coordinates-->
[[Sprite:redrawEffects]] ''tell Gideros to that effects must be recomputed''<br/><!-- GIDEROSMTD:Sprite:redrawEffects() tell Gideros to that effects must be recomputed -->
+
[[Sprite:hitTestPoint]] ''checks the given coordinates is in bounds of the sprite''<br/><!--GIDEROSMTD:Sprite:hitTestPoint(x,y,visible,ref) checks the given coordinates is in bounds of the sprite-->
[[Sprite:removeChild]] ''removes the child sprite''<br/><!-- GIDEROSMTD:Sprite:removeChild(child) removes the child sprite -->
+
[[Sprite:isVisible]] ''returns the visibility of sprite''<br/><!--GIDEROSMTD:Sprite:isVisible() returns the visibility of sprite-->
[[Sprite:removeChildAt]] ''removes the child sprite at the specifed index''<br/><!-- GIDEROSMTD:Sprite:removeChildAt(index) removes the child sprite at the specifed index -->
+
[[Sprite:localToGlobal]] ''converts the x,y coordinates from the sprite (local) coordinates to the global coordinates''<br/><!--GIDEROSMTD:Sprite:localToGlobal(x,y) converts the x,y coordinates from the sprite (local) coordinates to the global coordinates-->
[[Sprite:removeFromParent]] ''if the sprite has a parent, removes the sprite from the child list of its parent sprite.''<br/><!-- GIDEROSMTD:Sprite:removeFromParent() if the sprite has a parent, removes the sprite from the child list of its parent sprite. -->
+
[[Sprite:redrawEffects]] ''tells Gideros the effects must be recomputed''<br/><!--GIDEROSMTD:Sprite:redrawEffects() tells Gideros the effects must be recomputed-->
[[Sprite:set]] ''sets the specified property by its name''<br/><!-- GIDEROSMTD:Sprite:set(param,value) sets the specified property by its name -->
+
[[Sprite:removeChild]] ''removes the child sprite''<br/><!--GIDEROSMTD:Sprite:removeChild(child) removes the child sprite-->
[[Sprite:setAlpha]] ''sets the alpha transparency of this sprite''<br/><!-- GIDEROSMTD:Sprite:setAlpha(alpha) sets the alpha transparency of this sprite -->
+
[[Sprite:removeChildAt]] ''removes the child sprite at the specifed index''<br/><!--GIDEROSMTD:Sprite:removeChildAt(index) removes the child sprite at the specifed index-->
[[Sprite:setAnchorPosition]] ''Set anchor position''<br/><!-- GIDEROSMTD:Sprite:setAnchorPosition(anchorX,anchorY,anchorZ) Set anchor position -->
+
[[Sprite:removeFromParent]] ''if the sprite has a parent, removes the sprite from the child list of its parent sprite''<br/><!--GIDEROSMTD:Sprite:removeFromParent() if the sprite has a parent, removes the sprite from the child list of its parent sprite-->
[[Sprite:setBlendMode]] ''sets the blend mode of the sprite''<br/><!-- GIDEROSMTD:Sprite:setBlendMode(blendMode or src,dst) sets the blend mode of the sprite -->
+
[[Sprite:set]] ''sets the specified property by its name''<br/><!--GIDEROSMTD:Sprite:set(param,value) sets the specified property by its name-->
[[Sprite:setClip]] ''Clip Sprite contents''<br/><!-- GIDEROSMTD:Sprite:setClip(x,y,width,height) Clip Sprite contents -->
+
[[Sprite:setAlpha]] ''sets the alpha transparency of this sprite''<br/><!--GIDEROSMTD:Sprite:setAlpha(alpha) sets the alpha transparency of this sprite-->
[[Sprite:setColorTransform]] ''sets the red, green, blue and alpha channel multipliers''<br/><!-- GIDEROSMTD:Sprite:setColorTransform(redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier) sets the red, green, blue and alpha channel multipliers -->
+
[[Sprite:setAnchorPoint]] ''sets anchor position''<br/><!--GIDEROSMTD:Sprite:setAnchorPoint(anchorX,anchorY,anchorZ) sets anchor position-->
[[Sprite:setEffectConstant]] ''Change the value of a constant in the effect stack''<br/><!-- GIDEROSMTD:Sprite:setEffectConstant(effectIndex,uniform name,data type,mult,data,program,variant) Change the value of a constant in the effect stack -->
+
[[Sprite:setAnchorPosition]] ''sets anchor position''<br/><!--GIDEROSMTD:Sprite:setAnchorPosition(anchorX,anchorY,anchorZ) sets anchor position-->
[[Sprite:setEffectStack]] ''Associate an effect stack to this sprite''<br/><!-- GIDEROSMTD:Sprite:setEffectStack(effectStack,mode) Associate an effect stack to this sprite -->
+
[[Sprite:setBlendMode]] ''sets the blend mode of the sprite''<br/><!--GIDEROSMTD:Sprite:setBlendMode(blendMode or src,dst) sets the blend mode of the sprite-->
[[Sprite:setLayoutConstraints]] ''specify the child placement constraints for Gideros's layout system''<br/><!-- GIDEROSMTD:Sprite:setLayoutConstraints(constraints) specify the child placement constraints for Gideros's layout system -->
+
[[Sprite:setClip]] ''clips Sprite contents''<br/><!--GIDEROSMTD:Sprite:setClip(x,y,width,height) clips Sprite contents-->
[[Sprite:setLayoutParameters]] ''specify the parent parameters for Gideros's layout system''<br/><!-- GIDEROSMTD:Sprite:setLayoutParameters(layout) specify the parent parameters for Gideros's layout system -->
+
[[Sprite:setColorTransform]] ''sets the red, green, blue and alpha channel multipliers''<br/><!--GIDEROSMTD:Sprite:setColorTransform(redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier) sets the red, green, blue and alpha channel multipliers-->
[[Sprite:setMatrix]] ''sets the transformation matrix of the sprite''<br/><!-- GIDEROSMTD:Sprite:setMatrix(matrix) sets the transformation matrix of the sprite -->
+
[[Sprite:setEffectConstant]] ''changes the value of a constant in the effect stack''<br/><!--GIDEROSMTD:Sprite:setEffectConstant(effectIndex,uniform name,data type,mult,data,program,variant) changes the value of a constant in the effect stack-->
[[Sprite:setPosition]] ''sets the x,y and z coordinates of the sprite''<br/><!-- GIDEROSMTD:Sprite:setPosition(x,y,z) sets the x,y and z coordinates of the sprite -->
+
[[Sprite:setEffectStack]] ''associates an effect stack to this sprite''<br/><!--GIDEROSMTD:Sprite:setEffectStack(effectStack,mode) associates an effect stack to this sprite-->
[[Sprite:setRotation]] ''sets the rotation of the sprite in degrees''<br/><!-- GIDEROSMTD:Sprite:setRotation(rotation) sets the rotation of the sprite in degrees -->
+
[[Sprite:setGhosts]] ''renders original Sprite with slight variations''<br/><!--GIDEROSMTD:Sprite:setGhosts(table) renders original Sprite with slight variations-->
[[Sprite:setRotationX]] ''sets the rotation of the sprite in degrees around x axis''<br/><!-- GIDEROSMTD:Sprite:setRotationX() sets the rotation of the sprite in degrees around x axis -->
+
[[Sprite:setLayoutConstraints]] ''specifies the child placement constraints for Gideros layout system''<br/><!--GIDEROSMTD:Sprite:setLayoutConstraints(constraints) specifies the child placement constraints for Gideros layout system-->
[[Sprite:setRotationY]] ''sets the rotation of the sprite in degrees around y axis''<br/><!-- GIDEROSMTD:Sprite:setRotationY() sets the rotation of the sprite in degrees around y axis -->
+
[[Sprite:setLayoutParameters]] ''specifies the parent parameters for Gideros layout system''<br/><!--GIDEROSMTD:Sprite:setLayoutParameters(layout) specifies the parent parameters for Gideros layout system-->
[[Sprite:setScale]] ''sets the horizontal, vertical and z axis scales of the sprite''<br/><!-- GIDEROSMTD:Sprite:setScale(scaleX,scaleY,scaleZ) sets the horizontal, vertical and z axis scales of the sprite -->
+
[[Sprite:setMatrix]] ''sets the transformation matrix of the sprite''<br/><!--GIDEROSMTD:Sprite:setMatrix(matrix) sets the transformation matrix of the sprite-->
[[Sprite:setScaleX]] ''sets the horizontal scale of the sprite''<br/><!-- GIDEROSMTD:Sprite:setScaleX(scaleX) sets the horizontal scale of the sprite -->
+
[[Sprite:setPosition]] ''sets the x,y and z coordinates of the sprite''<br/><!--GIDEROSMTD:Sprite:setPosition(x,y,z) sets the x,y and z coordinates of the sprite-->
[[Sprite:setScaleY]] ''sets the vertical scale of the sprite''<br/><!-- GIDEROSMTD:Sprite:setScaleY(scaleY) sets the vertical scale of the sprite -->
+
[[Sprite:setRotation]] ''sets the rotation of the sprite in degrees''<br/><!--GIDEROSMTD:Sprite:setRotation(rotation) sets the rotation of the sprite in degrees-->
[[Sprite:setScaleZ]] ''Set scale on z axis''<br/><!-- GIDEROSMTD:Sprite:setScaleZ(scale) Set scale on z axis -->
+
[[Sprite:setRotationX]] ''sets the rotation of the sprite in degrees around x axis''<br/><!--GIDEROSMTD:Sprite:setRotationX() sets the rotation of the sprite in degrees around x axis-->
[[Sprite:setShader]] ''Set shader for this sprite''<br/><!-- GIDEROSMTD:Sprite:setShader(shader) Set shader for this sprite -->
+
[[Sprite:setRotationY]] ''sets the rotation of the sprite in degrees around y axis''<br/><!--GIDEROSMTD:Sprite:setRotationY() sets the rotation of the sprite in degrees around y axis-->
[[Sprite:setShaderConstant]] ''Change the value of a uniform for this sprite''<br/><!-- GIDEROSMTD:Sprite:setShaderConstant(uniform name,data type,mult,data,program,variant) Change the value of a uniform for this sprite -->
+
[[Sprite:setScale]] ''sets the horizontal, vertical and z axis scales of the sprite''<br/><!--GIDEROSMTD:Sprite:setScale(scaleX,scaleY,scaleZ) sets the horizontal, vertical and z axis scales of the sprite-->
[[Sprite:setSkew]] <br/><!-- GIDEROSMTD:Sprite:setSkew(kx,ky) -->
+
[[Sprite:setScaleX]] ''sets the horizontal scale of the sprite''<br/><!--GIDEROSMTD:Sprite:setScaleX(scaleX) sets the horizontal scale of the sprite-->
[[Sprite:setSkewX]] <br/><!-- GIDEROSMTD:Sprite:setSkewX(kx) -->
+
[[Sprite:setScaleY]] ''sets the vertical scale of the sprite''<br/><!--GIDEROSMTD:Sprite:setScaleY(scaleY) sets the vertical scale of the sprite-->
[[Sprite:setSkewY]] <br/><!-- GIDEROSMTD:Sprite:setSkewY(ky) -->
+
[[Sprite:setScaleZ]] ''sets scale on z axis''<br/><!--GIDEROSMTD:Sprite:setScaleZ(scale) sets scale on z axis-->
[[Sprite:setStencilOperation]] ''Set the stencil operation for this sprite''<br/><!-- GIDEROSMTD:Sprite:setStencilOperation(mask) Set the stencil operation for this sprite -->
+
[[Sprite:setShader]] ''sets shader for this sprite''<br/><!--GIDEROSMTD:Sprite:setShader(shader,programType,programVariant,inherit) sets shader for this sprite-->
[[Sprite:setStopEventPropagation]] ''Select which events must not be propagated to parent sprite''<br/><!-- GIDEROSMTD:Sprite:setStopEventPropagation(mask) Select which events must not be propagated to parent sprite -->
+
[[Sprite:setShaderConstant]] ''changes the value of a uniform for this sprite''<br/><!--GIDEROSMTD:Sprite:setShaderConstant(uniform name,data type,mult,data,program,variant) changes the value of a uniform for this sprite-->
[[Sprite:setVisible]] ''sets the visibility of sprite''<br/><!-- GIDEROSMTD:Sprite:setVisible(visible) sets the visibility of sprite -->
+
[[Sprite:setSkew]] sets the skew (ie shear) of the Sprite<br/><!--GIDEROSMTD:Sprite:setSkew(kx,ky) sets the skew (ie shear) of the Sprite-->
[[Sprite:setX]] ''sets the x coordinate of the sprite''<br/><!-- GIDEROSMTD:Sprite:setX(x) sets the x coordinate of the sprite -->
+
[[Sprite:setSkewX]] sets the Sprite x skew<br/><!--GIDEROSMTD:Sprite:setSkewX(kx) sets the Sprite x skew-->
[[Sprite:setY]] ''sets the y coordinate of the sprite''<br/><!-- GIDEROSMTD:Sprite:setY(y) sets the y coordinate of the sprite -->
+
[[Sprite:setSkewY]] sets the Sprite y skew<br/><!--GIDEROSMTD:Sprite:setSkewY(ky) sets the Sprite y skew-->
[[Sprite:setZ]] ''sets the z coordinate of the sprite''<br/><!-- GIDEROSMTD:Sprite:setZ(z) sets the z coordinate of the sprite -->
+
[[Sprite:setStencilOperation]] ''sets the stencil operation for this sprite''<br/><!--GIDEROSMTD:Sprite:setStencilOperation(mask) sets the stencil operation for this sprite-->
[[Sprite:swapChildren]] ''Swap two children index places''<br/><!-- GIDEROSMTD:Sprite:swapChildren(child1,child2) Swap two children index places -->
+
[[Sprite:setStopEventPropagation]] ''selects which events must not be propagated to parent sprite''<br/><!--GIDEROSMTD:Sprite:setStopEventPropagation(mask) selects which events must not be propagated to parent sprite-->
[[Sprite:swapChildrenAt]] ''Swaps two child sprites.''<br/><!-- GIDEROSMTD:Sprite:swapChildrenAt(index1,index2) Swaps two child sprites. -->
+
[[Sprite:setVisible]] ''sets the visibility of sprite''<br/><!--GIDEROSMTD:Sprite:setVisible(visible) sets the visibility of sprite-->
 +
[[Sprite:setX]] ''sets the x coordinate of the sprite''<br/><!--GIDEROSMTD:Sprite:setX(x) sets the x coordinate of the sprite-->
 +
[[Sprite:setY]] ''sets the y coordinate of the sprite''<br/><!--GIDEROSMTD:Sprite:setY(y) sets the y coordinate of the sprite-->
 +
[[Sprite:setZ]] ''sets the z coordinate of the sprite''<br/><!--GIDEROSMTD:Sprite:setZ(z) sets the z coordinate of the sprite-->
 +
[[Sprite:spriteToLocal]] ''converts from one sprite local space to another''<br/><!--GIDEROSMTD:Sprite:spriteToLocal(spr,x,y,z,tx,ty,tz) converts from one sprite local space to another-->
 +
[[Sprite:swapChildren]] ''swaps two children index places''<br/><!--GIDEROSMTD:Sprite:swapChildren(child1,child2) swaps two children index places-->
 +
[[Sprite:swapChildrenAt]] ''swaps two child sprites''<br/><!--GIDEROSMTD:Sprite:swapChildrenAt(index1,index2) swaps two child sprites-->
  
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
  
 
=== Events ===
 
=== Events ===
[[Event.ADDED_TO_STAGE]]<br/><!-- GIDEROSEVT:Event.ADDED_TO_STAGE addedToStage-->
+
[[Event.ADDED_TO_STAGE]]<br/><!--GIDEROSEVT:Event.ADDED_TO_STAGE addedToStage-->
[[Event.ENTER_FRAME]]<br/><!-- GIDEROSEVT:Event.ENTER_FRAME enterFrame-->
+
[[Event.ENTER_FRAME]]<br/><!--GIDEROSEVT:Event.ENTER_FRAME enterFrame-->
[[Event.KEY_DOWN]]<br/><!-- GIDEROSEVT:Event.KEY_DOWN keyDown-->
+
[[Event.KEY_CHAR]]<br/><!--GIDEROSEVT:Event.KEY_CHAR keyChar-->
[[Event.KEY_UP]]<br/><!-- GIDEROSEVT:Event.KEY_UP keyUp-->
+
[[Event.KEY_DOWN]]<br/><!--GIDEROSEVT:Event.KEY_DOWN keyDown-->
[[Event.LAYOUT_RESIZED]]<br/><!-- GIDEROSEVT:Event.LAYOUT_RESIZED layout_resized-->
+
[[Event.KEY_UP]]<br/><!--GIDEROSEVT:Event.KEY_UP keyUp-->
[[Event.MOUSE_DOWN]]<br/><!-- GIDEROSEVT:Event.MOUSE_DOWN mouseDown-->
+
[[Event.LAYOUT_RESIZED]]<br/><!--GIDEROSEVT:Event.LAYOUT_RESIZED layout_resized-->
[[Event.MOUSE_HOVER]]<br/><!-- GIDEROSEVT:Event.MOUSE_HOVER mouseHover-->
+
[[Event.MOUSE_DOWN]]<br/><!--GIDEROSEVT:Event.MOUSE_DOWN mouseDown-->
[[Event.MOUSE_MOVE]]<br/><!-- GIDEROSEVT:Event.MOUSE_MOVE mouseMove-->
+
[[Event.MOUSE_ENTER]]<br/><!--GIDEROSEVT:Event.MOUSE_ENTER mouseEnter-->
[[Event.MOUSE_UP]]<br/><!-- GIDEROSEVT:Event.MOUSE_UP mouseUp-->
+
[[Event.MOUSE_HOVER]]<br/><!--GIDEROSEVT:Event.MOUSE_HOVER mouseHover-->
[[Event.MOUSE_WHEEL]]<br/><!-- GIDEROSEVT:Event.MOUSE_WHEEL mouseWheel-->
+
[[Event.MOUSE_LEAVE]]<br/><!--GIDEROSEVT:Event.MOUSE_LEAVE mouseLeave-->
[[Event.REMOVED_FROM_STAGE]]<br/><!-- GIDEROSEVT:Event.REMOVED_FROM_STAGE removedFromStage-->
+
[[Event.MOUSE_MOVE]]<br/><!--GIDEROSEVT:Event.MOUSE_MOVE mouseMove-->
[[Event.TOUCHES_BEGIN]]<br/><!-- GIDEROSEVT:Event.TOUCHES_BEGIN touchesBegin-->
+
[[Event.MOUSE_UP]]<br/><!--GIDEROSEVT:Event.MOUSE_UP mouseUp-->
[[Event.TOUCHES_CANCEL]]<br/><!-- GIDEROSEVT:Event.TOUCHES_CANCEL touchesCancel-->
+
[[Event.MOUSE_WHEEL]]<br/><!--GIDEROSEVT:Event.MOUSE_WHEEL mouseWheel-->
[[Event.TOUCHES_END]]<br/><!-- GIDEROSEVT:Event.TOUCHES_END touchesEnd-->
+
[[Event.REMOVED_FROM_STAGE]]<br/><!--GIDEROSEVT:Event.REMOVED_FROM_STAGE removedFromStage-->
[[Event.TOUCHES_MOVE]]<br/><!-- GIDEROSEVT:Event.TOUCHES_MOVE touchesMove-->
+
[[Event.TOUCHES_BEGIN]]<br/><!--GIDEROSEVT:Event.TOUCHES_BEGIN touchesBegin-->
 +
[[Event.TOUCHES_CANCEL]]<br/><!--GIDEROSEVT:Event.TOUCHES_CANCEL touchesCancel-->
 +
[[Event.TOUCHES_END]]<br/><!--GIDEROSEVT:Event.TOUCHES_END touchesEnd-->
 +
[[Event.TOUCHES_MOVE]]<br/><!--GIDEROSEVT:Event.TOUCHES_MOVE touchesMove-->
 +
 
 
=== Constants ===
 
=== Constants ===
[[Sprite.ADD]]<br/><!-- GIDEROSCST:Sprite.ADD add-->
+
[[Sprite.ADD]]<br/><!--GIDEROSCST:Sprite.ADD add-->
[[Sprite.ALPHA]]<br/><!-- GIDEROSCST:Sprite.ALPHA alpha-->
+
[[Sprite.ALPHA]]<br/><!--GIDEROSCST:Sprite.ALPHA alpha-->
[[Sprite.EFFECT_MODE_AUTOMATIC]] ''Not yet implemented''<br/><!-- GIDEROSCST:Sprite.EFFECT_MODE_AUTOMATIC 1-->
+
[[Sprite.EFFECT_MODE_AUTOMATIC]] ''Beta feature''<br/><!--GIDEROSCST:Sprite.EFFECT_MODE_AUTOMATIC 1-->
[[Sprite.EFFECT_MODE_CONTINUOUS]] ''Always update the effects, this is the default''<br/><!-- GIDEROSCST:Sprite.EFFECT_MODE_CONTINUOUS 0-->
+
[[Sprite.EFFECT_MODE_CONTINUOUS]] ''Always update the effects, this is the default''<br/><!--GIDEROSCST:Sprite.EFFECT_MODE_CONTINUOUS 0-->
[[Sprite.EFFECT_MODE_TRIGGERED]] ''Update effects on demand''<br/><!-- GIDEROSCST:Sprite.EFFECT_MODE_TRIGGERED 2-->
+
[[Sprite.EFFECT_MODE_TRIGGERED]] ''Update effects on demand''<br/><!--GIDEROSCST:Sprite.EFFECT_MODE_TRIGGERED 2-->
[[Sprite.LAYOUT_ANCHOR_CENTER]]<br/><!-- GIDEROSCST:Sprite.LAYOUT_ANCHOR_CENTER 0-->
+
[[Sprite.LAYOUT_ANCHOR_CENTER]]<br/><!--GIDEROSCST:Sprite.LAYOUT_ANCHOR_CENTER 0-->
[[Sprite.LAYOUT_ANCHOR_EAST]]<br/><!-- GIDEROSCST:Sprite.LAYOUT_ANCHOR_EAST 3-->
+
[[Sprite.LAYOUT_ANCHOR_EAST]]<br/><!--GIDEROSCST:Sprite.LAYOUT_ANCHOR_EAST 3-->
[[Sprite.LAYOUT_ANCHOR_NORTH]]<br/><!-- GIDEROSCST:Sprite.LAYOUT_ANCHOR_NORTH 1-->
+
[[Sprite.LAYOUT_ANCHOR_NORTH]]<br/><!--GIDEROSCST:Sprite.LAYOUT_ANCHOR_NORTH 1-->
[[Sprite.LAYOUT_ANCHOR_NORTHEAST]]<br/><!-- GIDEROSCST:Sprite.LAYOUT_ANCHOR_NORTHEAST 2-->
+
[[Sprite.LAYOUT_ANCHOR_NORTHEAST]]<br/><!--GIDEROSCST:Sprite.LAYOUT_ANCHOR_NORTHEAST 2-->
[[Sprite.LAYOUT_ANCHOR_NORTHWEST]]<br/><!-- GIDEROSCST:Sprite.LAYOUT_ANCHOR_NORTHWEST 8-->
+
[[Sprite.LAYOUT_ANCHOR_NORTHWEST]]<br/><!--GIDEROSCST:Sprite.LAYOUT_ANCHOR_NORTHWEST 8-->
[[Sprite.LAYOUT_ANCHOR_SOUTH]]<br/><!-- GIDEROSCST:Sprite.LAYOUT_ANCHOR_SOUTH 5-->
+
[[Sprite.LAYOUT_ANCHOR_SOUTH]]<br/><!--GIDEROSCST:Sprite.LAYOUT_ANCHOR_SOUTH 5-->
[[Sprite.LAYOUT_ANCHOR_SOUTHEAST]]<br/><!-- GIDEROSCST:Sprite.LAYOUT_ANCHOR_SOUTHEAST 4-->
+
[[Sprite.LAYOUT_ANCHOR_SOUTHEAST]]<br/><!--GIDEROSCST:Sprite.LAYOUT_ANCHOR_SOUTHEAST 4-->
[[Sprite.LAYOUT_ANCHOR_SOUTHWEST]]<br/><!-- GIDEROSCST:Sprite.LAYOUT_ANCHOR_SOUTHWEST 6-->
+
[[Sprite.LAYOUT_ANCHOR_SOUTHWEST]]<br/><!--GIDEROSCST:Sprite.LAYOUT_ANCHOR_SOUTHWEST 6-->
[[Sprite.LAYOUT_ANCHOR_WEST]]<br/><!-- GIDEROSCST:Sprite.LAYOUT_ANCHOR_WEST 7-->
+
[[Sprite.LAYOUT_ANCHOR_WEST]]<br/><!--GIDEROSCST:Sprite.LAYOUT_ANCHOR_WEST 7-->
[[Sprite.LAYOUT_FILL_BOTH]]<br/><!-- GIDEROSCST:Sprite.LAYOUT_FILL_BOTH 1-->
+
[[Sprite.LAYOUT_FILL_BOTH]]<br/><!--GIDEROSCST:Sprite.LAYOUT_FILL_BOTH 1-->
[[Sprite.LAYOUT_FILL_HORIZONTAL]]<br/><!-- GIDEROSCST:Sprite.LAYOUT_FILL_HORIZONTAL 2-->
+
[[Sprite.LAYOUT_FILL_HORIZONTAL]]<br/><!--GIDEROSCST:Sprite.LAYOUT_FILL_HORIZONTAL 2-->
[[Sprite.LAYOUT_FILL_NONE]]<br/><!-- GIDEROSCST:Sprite.LAYOUT_FILL_NONE 0-->
+
[[Sprite.LAYOUT_FILL_NONE]]<br/><!--GIDEROSCST:Sprite.LAYOUT_FILL_NONE 0-->
[[Sprite.LAYOUT_FILL_VERTICAL]]<br/><!-- GIDEROSCST:Sprite.LAYOUT_FILL_VERTICAL 3-->
+
[[Sprite.LAYOUT_FILL_VERTICAL]]<br/><!--GIDEROSCST:Sprite.LAYOUT_FILL_VERTICAL 3-->
[[Sprite.MULTIPLY]]<br/><!-- GIDEROSCST:Sprite.MULTIPLY multiply-->
+
[[Sprite.MULTIPLY]]<br/><!--GIDEROSCST:Sprite.MULTIPLY multiply-->
[[Sprite.NO_ALPHA]]<br/><!-- GIDEROSCST:Sprite.NO_ALPHA noAlpha-->
+
[[Sprite.NO_ALPHA]]<br/><!--GIDEROSCST:Sprite.NO_ALPHA noAlpha-->
[[Sprite.SCREEN]]<br/><!-- GIDEROSCST:Sprite.SCREEN screen-->
+
[[Sprite.SCREEN]]<br/><!--GIDEROSCST:Sprite.SCREEN screen-->
 
|}
 
|}
  
 
{{GIDEROS IMPORTANT LINKS}}
 
{{GIDEROS IMPORTANT LINKS}}

Latest revision as of 20:50, 17 September 2023

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
Available since: Gideros 2011.6
Inherits from: EventDispatcher

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, propagate its effect to all of its children.

The drawing order is defined by the order of children. The first child is drawn first and the last child is drawn last. It is possible to change the drawing order by modifying the order of child list.

A Sprite instance can exist without attaching it to 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.

Methods

Sprite.new creates a new Sprite object
Sprite:addChild adds a sprite as a child
Sprite:addChildAt adds a sprite as a child at the index position specified
Sprite:clearBlendMode clears the blending mode
Sprite:clone duplicate this sprite into an independant copy
Sprite:contains determines whether the specified sprite is contained in the subtree of this sprite
Sprite:get gets the specified property by its name
Sprite:getAlpha returns the alpha transparency of this sprite
Sprite:getAnchorPoint returns anchor position
Sprite:getAnchorPosition returns anchor position
Sprite:getBounds returns the bounds as it appears in another sprite coordinate system
Sprite:getChildAt returns the child sprite that exists at the specified index
Sprite:getChildIndex returns the index of the specified child sprite
Sprite:getChildrenAtPoint returns the children sprites that corresponds to the given screen coordinates
Sprite:getClip returns the coordinates of the Sprite clip range if set with setClip
Sprite:getColorTransform returns the red, green, blue and alpha channel multipliers
Sprite:getDrawCount returns the number of Sprites actually drawn each frame on this subtree
Sprite:getHeight returns the height
Sprite:getLayoutConstraints gets the current layout constraints
Sprite:getLayoutInfo gets information of the current layout
Sprite:getLayoutParameters gets the current layout parameters
Sprite:getMatrix returns the transformation matrix of the sprite
Sprite:getNumChildren returns the number of children of this sprite
Sprite:getParent returns the parent sprite
Sprite:getPosition gets the x,y and z coordinates of the sprite
Sprite:getRotation returns the rotation of the sprite in degrees
Sprite:getRotationX returns the rotation of the sprite around x axis in degrees
Sprite:getRotationY returns the rotation of the sprite around y axis in degrees
Sprite:getScale returns the horizontal, vertical and z scales of the sprite
Sprite:getScaleX returns the horizontal scale of the sprite
Sprite:getScaleY returns the vertical scale of the sprite
Sprite:getScaleZ returns the scale on z axis of the sprite
Sprite:getSize returns the width and height of the Sprite
Sprite:getSkew returns the x and y skew parameters of the Sprite
Sprite:getSkewX returns the x skew parameters of the Sprite
Sprite:getSkewY returns the y skew parameters of the Sprite
Sprite:getWidth returns the width
Sprite:getX returns the x coordinate of the sprite
Sprite:getY returns the y coordinate of the sprite
Sprite:getZ returns the z coordinate of the sprite
Sprite:globalToLocal converts the x,y coordinates from the global to the sprite (local) coordinates
Sprite:hitTestPoint checks the given coordinates is in bounds of the sprite
Sprite:isVisible returns the visibility of sprite
Sprite:localToGlobal converts the x,y coordinates from the sprite (local) coordinates to the global coordinates
Sprite:redrawEffects tells Gideros the effects must be recomputed
Sprite:removeChild removes the child sprite
Sprite:removeChildAt removes the child sprite at the specifed index
Sprite:removeFromParent if the sprite has a parent, removes the sprite from the child list of its parent sprite
Sprite:set sets the specified property by its name
Sprite:setAlpha sets the alpha transparency of this sprite
Sprite:setAnchorPoint sets anchor position
Sprite:setAnchorPosition sets anchor position
Sprite:setBlendMode sets the blend mode of the sprite
Sprite:setClip clips Sprite contents
Sprite:setColorTransform sets the red, green, blue and alpha channel multipliers
Sprite:setEffectConstant changes the value of a constant in the effect stack
Sprite:setEffectStack associates an effect stack to this sprite
Sprite:setGhosts renders original Sprite with slight variations
Sprite:setLayoutConstraints specifies the child placement constraints for Gideros layout system
Sprite:setLayoutParameters specifies the parent parameters for Gideros layout system
Sprite:setMatrix sets the transformation matrix of the sprite
Sprite:setPosition sets the x,y and z coordinates of the sprite
Sprite:setRotation sets the rotation of the sprite in degrees
Sprite:setRotationX sets the rotation of the sprite in degrees around x axis
Sprite:setRotationY sets the rotation of the sprite in degrees around y axis
Sprite:setScale sets the horizontal, vertical and z axis scales of the sprite
Sprite:setScaleX sets the horizontal scale of the sprite
Sprite:setScaleY sets the vertical scale of the sprite
Sprite:setScaleZ sets scale on z axis
Sprite:setShader sets shader for this sprite
Sprite:setShaderConstant changes the value of a uniform for this sprite
Sprite:setSkew sets the skew (ie shear) of the Sprite
Sprite:setSkewX sets the Sprite x skew
Sprite:setSkewY sets the Sprite y skew
Sprite:setStencilOperation sets the stencil operation for this sprite
Sprite:setStopEventPropagation selects which events must not be propagated to parent sprite
Sprite:setVisible sets the visibility of sprite
Sprite:setX sets the x coordinate of the sprite
Sprite:setY sets the y coordinate of the sprite
Sprite:setZ sets the z coordinate of the sprite
Sprite:spriteToLocal converts from one sprite local space to another
Sprite:swapChildren swaps two children index places
Sprite:swapChildrenAt swaps two child sprites

Events

Event.ADDED_TO_STAGE
Event.ENTER_FRAME
Event.KEY_CHAR
Event.KEY_DOWN
Event.KEY_UP
Event.LAYOUT_RESIZED
Event.MOUSE_DOWN
Event.MOUSE_ENTER
Event.MOUSE_HOVER
Event.MOUSE_LEAVE
Event.MOUSE_MOVE
Event.MOUSE_UP
Event.MOUSE_WHEEL
Event.REMOVED_FROM_STAGE
Event.TOUCHES_BEGIN
Event.TOUCHES_CANCEL
Event.TOUCHES_END
Event.TOUCHES_MOVE

Constants

Sprite.ADD
Sprite.ALPHA
Sprite.EFFECT_MODE_AUTOMATIC Beta feature
Sprite.EFFECT_MODE_CONTINUOUS Always update the effects, this is the default
Sprite.EFFECT_MODE_TRIGGERED Update effects on demand
Sprite.LAYOUT_ANCHOR_CENTER
Sprite.LAYOUT_ANCHOR_EAST
Sprite.LAYOUT_ANCHOR_NORTH
Sprite.LAYOUT_ANCHOR_NORTHEAST
Sprite.LAYOUT_ANCHOR_NORTHWEST
Sprite.LAYOUT_ANCHOR_SOUTH
Sprite.LAYOUT_ANCHOR_SOUTHEAST
Sprite.LAYOUT_ANCHOR_SOUTHWEST
Sprite.LAYOUT_ANCHOR_WEST
Sprite.LAYOUT_FILL_BOTH
Sprite.LAYOUT_FILL_HORIZONTAL
Sprite.LAYOUT_FILL_NONE
Sprite.LAYOUT_FILL_VERTICAL
Sprite.MULTIPLY
Sprite.NO_ALPHA
Sprite.SCREEN