win8_livetile_badge_clear();
Returns: N/A
This function clears the current badge from the Live Tile of
your game.
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.