window_set_caption

Sets the caption of the window.

Syntax:

window_set_caption(caption);


Argument Description
caption The new caption.


Returns:N/A


Description

With this function you can change or set the windows caption for the room that you are currently in. This caption appears at the top of the window, beside the game icon, when the game is not in full screen mode.

NOTE: This function is for the Pro version of GameMaker: Studio only..



Example:

if window_get_caption() != ""
   {
   window_set_caption("");
   }

The above code will check the windows caption to see if it has text or not, and if it does it sets it to an empty string so as no caption is displayed.


Back: The Game Window
Next: window_set_colour
© Copyright YoYo Games Ltd. 2018 All Rights Reserved