Difference between revisions of "Sprite:set"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Sets the specified property of this sprite instance by its name. These names are supported:<br...")
 
Line 26: Line 26:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= Sprite:set(paramvalue,)
+
Sprite:set(param,value)
 
</source>
 
</source>
'''param:''' (string) The name of the parameter ''''''<br/>
+
'''param''': (string) The name of the parameter ''''''<br/>
'''value:''' (number) The new value of the specified parameter ''''''<br/>
+
'''value''': (number) The new value of the specified parameter ''''''<br/>

Revision as of 11:20, 23 August 2018

Available since: Gideros 2011.6

Description


Sets the specified property of this sprite instance by its name. These names are supported:


  • `"x"`

  • `"y"`

  • `"z"`

  • `"rotation"`

  • `"rotationX"`

  • `"rotationY"`

  • `"scaleX"`

  • `"scaleY"`

  • `"scaleZ"`

  • `"alpha"`

  • `"redMultiplier"`

  • `"greenMultiplier"`

  • `"blueMultiplier"`

  • `"alphaMultiplier"`

  • `"anchorX"`

  • `"anchorY"`

  • `"anchorZ"`



 Sprite:set(param,value)

'param: (string) The name of the parameter '
'value: (number) The new value of the specified parameter '