Gaming
 

Argument

From Game Maker

An argument in Game Maker is whatever goes into the brackets after a function's name.
Every function requires a specific amount of arguments, separated by commas and each of them need to be of a specific type. This is a common mistake when starting with GML and always results in errors.

[edit] Example

The function instance_create(x,y,obj); is the function used for creating an instance of an object in GML. In this case x,y and obj are all arguments to be used for the function. x and y must be numbers, whereas obj is the object index of the object you want to create.

This article is a stub. You can help the Game Maker Wiki by expanding it.