Hey Defold people! I’m very new to Defold, although I’ve developed reasonably successful IOS and Android apps on the Gideros platform. Now looking for a new environment I’m going through Defold docs and tutorials and this seems to be a nice one to continue to develop in.
But there seems to be a knot that needs to be untied. I can’t get if there is something fundamental that I have missed in the organisation of objects and components or if there is something else.
I wanted to create an sprite using factory.create() in a script (although now I have stripped the project from everything unnessecary). I’m calling the factory instance within a game object, but I get this:
no instance could be found in the current script environment
This is my setup:
The script:
print("hej")
factory.create("#factory")
Out of docs and tutorials I understand #factory (or /go#factory) refers to the factory called “factory” in the “go” game object, but I’m clearly missing something here.