I don’t find nothing about it.
I ve opened it. Now i’m writing a function, and in the code i’d like to “link” two object.
This is my function:
Here is how you would do it:
const enemy = objects; const gun = runtimeScene.createObject('Gun_Object'); const manager = gdjs.LinksManager.getManager(runtimeScene); manager.linkObjects(enemy, gun)
Note that in your screenshot there is an issue. You use
object, but the passed object is named
objects. It also is an array of all instances of the objects and not a single reference to an instance.
Thank you @arthuro555
Thanks, this info helped me today!