createObject(runtime.objects.Player)
createObject(object) {
const instance = object.createInstance(
this.ABOVE_LAYER,
this.W,
this.H
);
const { Bullet } = instance.behaviors;
Bullet.speed = 100
Bullet.isEnabled = true;
// todo, change the instance width.
}
I would like to change the width of newly created instance., Looks like there is no `width` setter on the instance itself.
Any ideas?