Trying to figure out a way to instantiate instances of an object at runtime in a JS code block.
So for example in the editor i may have a sprite object called “testSprite” and in JS code I want to create an instance of it, with a reference variable that I can then manipulate its .setX() and .setY() parameters etc.
I can’t seem to find an example of this anywhere, any ideas ?