Bentley
Member
Does anyone know how to add paths together and have them be relative to the existing path? In other words, if your path is at 0, you add a path that is 16 to the right, and you then add a path that is 16 to the right, I want my dynamic path to be from 0 to 32.
Edit: I think what's happening is I'm appending a path from 0 to 16 onto a path that is from 0 to 16, so the same points are added. Any ideas how to append a that resource tree path onto my dynamic path more than once (it seems to only work the first time).
What I have:
[Create]
I want to append a path to that path:
[Step]
This works one time as shown by draw_path: the path shows up 16 pixels to the right of my player when I press D. I want to be able to press D again and append that same resource tree path onto "path".
The manual does say:
But jsut in case, I tried some other funky stuff but I couldn't get it to work. For ex:
That doesn't work either.
Thanks for reading. Let me know if I can clarify anything.
Edit: I think what's happening is I'm appending a path from 0 to 16 onto a path that is from 0 to 16, so the same points are added. Any ideas how to append a that resource tree path onto my dynamic path more than once (it seems to only work the first time).
What I have:
[Create]
Code:
path = path_add();
[Step]
Code:
if (keyboard_check_pressed(ord("D")))
{
path_append(path, path_from_resourcetree);
}
The manual does say:
I'm pretty sure that does NOT include resource tree paths, only dynamic paths.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.
But jsut in case, I tried some other funky stuff but I couldn't get it to work. For ex:
Code:
if (keyboard_check_pressed(ord("D")))
{
var path_to_append = path_duplicate(path_from_resourcetree);
path_append(path, path_to_append);
path_delete(path_to_append);
}
Thanks for reading. Let me know if I can clarify anything.
Last edited: