HomeHome  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 Tutorial: Hello World In GML

View previous topic View next topic Go down 
AuthorMessage
pencillio
Administrator
Administrator


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

PostSubject: Tutorial: Hello World In GML   Sat 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
View user profile http://www.theorganpipescom
 
Tutorial: Hello World In GML
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Tutorial: Building a World Part 11 & 12 by Stw402
» Tutorial - How to create a world using Real-World Height data by Napalm_VFR
» Forge World 40 K
» Great Tank and Weathering tutorial
» Power Sword Tutorial (with more to follow)

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