how can I create instances of Scenes or for example the TestCube when using a function that is run by another thread?
When I try to create an instance from a threaded function, the thread never finishes and stays active forever.
Here is a quick example (commenting out the line var testcube = TestCube.new() makes the script run without problems)
var thread1 = Thread.new()
var thread2 = Thread.new()
print("waiting to finish")
func threadedFunction1(var data):
var testcube = TestCube.new()
func threadedFunction2(var data):
print("doing something else")