|
show_message(str) |
|
Drag & Drop equivalent :
str = Message to be displayed.
Example
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:
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:
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
|