path_exists

Returns whether a path with the given index exists or not.

Syntax:

path_exists(index);


Argument Description
index The index of the path to check for.


Returns: Boolean.


Description

This function returns whether a path with the given index exists or not. Note that if you check for the existence of a path through a variable that has yet to have been declared, this will throw an error.


Example:

if path_exists(path0)
   {
   path_start(path0, 4, path_action_reverse, 0);
   }

This will start path0, if it exists.


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