show_message(str)

Drag & Drop equivalent : GM044

 

str = Message to be displayed.

 

Example

show_message("This will popup a message with an 'OK' button");

 

show_message allows the game to display messages to the user in a pop up box on which the user has to click an 'OK' button to continue.  There are various ways that the message box can be configured with different colours, font and backgrounds.

 

show_message can be used to show many other things besides plain text strings, you can display numbers; Note: in order to display numbers they need to be converted into strings:

 

show_message(string(chosennumber));

 

The above example will display the contents of chosennumber in the pop up message box. You can also concatenate (join together) different things when displaying message by using the plus sign:

 

show_message("Good Morning "+playername+", how are you?");

 

In the example above, and let's assume the variable playername held the string "Nickydude", the message box would display:

 

"Good Morning Nickydude, how are you?"

 

Revision #1