win8_livetile_badge_clear

Clear the current badge from the Live Tile.

Syntax:

GML Code Example

win8_livetile_badge_clear();


Returns: N/A


Description

This function clears the current badge from the Live Tile of your game.


Example:

GML Code Example

if keyboard_check_pressed(ord("P"))
    {
    if global.Pause
       {
       global.Pause = false;
       win8_livetile_badge_clear();
       }
    else
       {
       global.Pause = true;
       win8_livetile_badge_notification("paused");
       }
    }
 

The above code will check for the key "P" being pressed and if it is detected, it will toggle the global variable "Paused" to true or false and push a badge onto the Live Tile (or remove it again) based on the value of this variable.





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