shop_leave_rating

With this you can ask the user to add a rating.

Syntax:

GML Code Example

shop_leave_rating(text, yes_string, no_string, url)


Argument Description
text Text that appears on the dialogue.
yes_string Text that appears on the "yes" button.
no_string Text that appears on the "no" button.
url The full URL where the comment has to be sent.


Returns: N/A


Description

This function opens up an OS dependant dialogue where you can ask the user to post a rating or comment to a particular page. You can define the text that is to appear in the dialogue, as well as the text you wish to appear on the two buttons and the URL where the comment has to be posted.

NOTE: This function is only for Android and iOS targets.


Example:

GML Code Example

if timer <= 0
    {
    shop_leave_rating("Thanks for playing the game! Why not leave a comment?", "Okay!", "Not Today!", "http://MacSweeney/comments");
    timer = 10000000;
    }
 else
    {
    timer -= 1;
    }
 

The above code will ask the user to leave a comment if the variable "timer" has counted down to 0.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here