Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Gamemaker Essentials
  • Table Of Contents Toc
Gamemaker Essentials

Gamemaker Essentials

3.8 (13)
close
close
Gamemaker Essentials

Gamemaker Essentials

3.8 (13)

Overview of this book

This book is for users experienced with game development who now want to learn how to develop games in GameMaker: Studio in a fast-paced way.
Table of Contents (11 chapters)
close
close

Functions


GameMaker Language is made up of functions. Functions allow for many things to be done, ranging from creating an object to drawing text to the screen. It is all done through the use of functions.

The basic structure of a function is, the function's name, an open bracket, function arguments, and a closing bracket.

function_name(arg1,arg2,arg3,ect);

An argument is a value that must be given to the functions in order for it to run correctly. As an example, let's look at drawing text to the screen.

To draw text to the screen, we will go to the draw event of an object and add a code block. In this, we will then type the function's name draw_text and a set of brackets directly after. Inside these brackets, we type our arguments.

To find out what arguments are needed, put the cursor in between the brackets and look down to the bottom of the code editor window. You will see the function name at the very bottom, and its arguments listed as shown in the following screenshot:

As you can see, we...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Gamemaker Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon