So, let's say that I have three different sprites (blaa, blaa1 and blaa2) and I want to change the width/height of one of the objects by function.
Is there any way to find object by name and set it's, in this example, width and height to wanted value?
Right now, I always need to use if/else to check if object uid matches with any of the uid's for any of the objects. That function can get really big, really fast.
Develop games in your browser. Powerful, performant & highly capable.
Families are useful for this so you can minimise it to one check. If you put the 3 objects into a Family you can run that pick instance check on Family only.
Oh, I even used families a lot and didn't even cross my mind that this would be possible.
Thanks you very much and sorry for a bad question.