ads_move

This code moves displaying ads in your game room.

Syntax:

ads_move(x, y, num)


Argument Description
x The new x position in the room.
y The new y position in the room.
num The advert number to display (0 - 4).


Returns: N/A


Description

With this function you can move displaying ads to the given position within the GUI. The "num" that you supply is the number of the advertising key that you wish to use as defined in the Global Game Settings - Advertising Tab, and will generate an advert of the size specified for that key.

Example:

ads_move(display_get_gui_width() - ads_get_display_width(0), 0, 0);

The above code will set an advert to display at the top right-hand of the display.


Back: Advertising and Analytics
Next: ads_get_display_width
© Copyright YoYo Games Ltd. 2018 All Rights Reserved