path_append

Joins two paths together.

Syntax:

path_append(index, path);


Argument Description
index The new index of the path.
path The index of the path that will be appended to 'index'.


Returns: N/A


Description

With this code you can append one path onto another one, effectively joining them together, and for this to work, both paths must previously exist (either made in the path editor or created using path_add).

NOTE: This will not remove the path being appended from the resources. It is still there, only it now has no points in it and if you no longer wish to use it you should remove it with the function path_delete.


Example:

path_append(mypath, mppath); path_delete(mppath);

The above code appends the path data indexed in the variable "mppath" to the path indexed in the variable "mypath" and then deletes the "mppath" from memory.


Back: Changing Paths
Next: path_assign
© Copyright YoYo Games Ltd. 2019 All Rights Reserved