hi
i have this code and there are 3 sprites in the program
to access the first sprite for movement i use the below code.
const object1 = runtime.objects.numbersprite1.getFirstInstance();
const object2 = runtime.objects.numbersprite2.getFirstInstance();
const object3 = runtime.objects.numbersprite3.getFirstInstance();
object1.x=50;
so if i want to select another object with variable eg number=2,
how can i select object
e.g i am trying
object(number).x =50;
object('number').x =50;
object("number").x =50;
"object(number).x =50;"
what would be the correct statement to use, above 4 wont work
thankyou