The Organ Pipes
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 Tutorial: Hello World In GML

Go down 
AuthorMessage
pencillio
Administrator
Administrator



Posts : 8
Join date : 2008-06-14
Age : 30

Tutorial: Hello World In GML Empty
PostSubject: Tutorial: Hello World In GML   Tutorial: Hello World In GML EmptySat Jun 14, 2008 9:16 pm

The source code

Code:

// Hello World In GML

show_message("Hello World!");
keyboard_wait();
game_end();

What does it all do?


Code:
// Hello World In GML
This is a comment - it doesn't get executed.

Code:
show_message("Hello World!");
This function creates a pop-up box with the text inside the string. show_message() is known as a function.

Code:
keyboard_wait();
A function which makes the program wait until the user presses any key before it goes onto the next instruction.

Code:
game_end();
Does exactly what it says - ends the game. In other words, terminates the program.

How do I compile it?

To use GML, you need to download Game Maker - the lite version is free. When you have installed it, just create a room, and put the source code in the room creation code (under "settings").
Back to top Go down
http://www.theorganpipescom
 
Tutorial: Hello World In GML
Back to top 
Page 1 of 1
 Similar topics
-
» Tutorial: Hello World In C++
» Tutorial: Hello World In DarkBASIC
» Tutorial: First Webpage

Permissions in this forum:You cannot reply to topics in this forum
The Organ Pipes :: Programming :: GML-
Jump to: