### Designing Games with GameMaker

### Paths

The following functions will give you information about a path:

Returns whether a path with the given index exists.path_exists(ind)

Returns the name of the path with the given index.path_get_name(ind)

Returns the length of the path with the given index.path_get_length(ind)

Returns the kind of connections of the path with the given index (0=straight, 1=smooth).path_get_kind(ind)

Returns whether the path is closed or not.path_get_closed(ind)

Returns the precision used for creating smoothed paths.path_get_precision(ind)

Returns the number of defining points for the path.path_get_number(ind)

Returns the x-coordinate of the n'th defining point for the path. 0 is the first point.path_get_point_x(ind,n)

Returns the y-coordinate of the n'th defining point for the path. 0 is the first point.path_get_point_y(ind,n)

Returns the speed factor at the n'th defining point for the path. 0 is the first point.path_get_point_speed(ind,n)

Returns the x-coordinate at position pos for the path. pos must lie between 0 and 1.path_get_x(ind,pos)

Returns the y-coordinate at position pos for the path. pos must lie between 0 and 1.path_get_y(ind,pos)

Returns the speed factor at position pos for the path. pos must lie between 0 and 1.path_get_speed(ind,pos)

### Alternative versions

You can also read this manual on one single long page (± 1.5 mb)

Also available in:

Download helpfile

Also available in:

Download helpfile