path_get_kind

Returns whether a path is smooth or straight.

Syntax:

path_get_kind(index);


Argument Description
index The index of the path to check.


Returns: Boolean.


Description

Paths can be either smooth or straight (a smooth path calculates a curved path around the defining points, whereas a straight path just goes straight from one point to another). This function can be used to find out whether the given path is smooth (true) or not (false).


Example:

kind = path_get_kind(c_path);

This will set "state" to either true or false depending on the state of path0.


Back: Path Information
Next: path_get_length
© Copyright YoYo Games Ltd. 2018 All Rights Reserved