Ads:getPosition: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "<source" to "<syntaxhighlight"
Line 5: Line 5:
=== Description ===
=== Description ===
Gets x and y position of the ad in Gideros logical dimensions, taking into consideration applied automatic scaling.
Gets x and y position of the ad in Gideros logical dimensions, taking into consideration applied automatic scaling.
<source lang="lua">
<syntaxhighlight lang="lua">
(number), (number) = Ads:getPosition()
(number), (number) = Ads:getPosition()
</source>
</source>

Revision as of 15:35, 12 July 2023

Available since: Gideros 2011.6
Class: Ads

Description

Gets x and y position of the ad in Gideros logical dimensions, taking into consideration applied automatic scaling. <syntaxhighlight lang="lua"> (number), (number) = Ads:getPosition() </source>

Return values

Returns (number) x position of the ad
Returns (number) y position of the ad