Difference between revisions of "Sprite:get"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Returns the specified property of this sprite instance by its name. These names are supported:<...") |
|||
Line 26: | Line 26: | ||
<br /> | <br /> | ||
<source lang="lua"> | <source lang="lua"> | ||
− | (number) | + | (number) = Sprite:get(param) |
</source> | </source> | ||
− | '''param | + | '''param''': (string) The name of the parameter ''''''<br/> |
'''Returns''' (number) The value of the parameter<br/> | '''Returns''' (number) The value of the parameter<br/> |
Revision as of 10:17, 23 August 2018
Available since: Gideros 2011.6
Description
Returns 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"`
(number) = Sprite:get(param)
'param: (string) The name of the parameter '
Returns (number) The value of the parameter