- Oct 11, 2015
- Reaction score
- First Language
- Primarily Uses
this.sprite = new Sprite(bmp); this.addChild(this.sprite); this.sprite.scale.x = -1; // <<< this line causes the sprite to become invisible. Why? Why won't it mirror?
this.sprite.scale.set(-1,1); // also doesn't work. No error either, just turns invisible. this.sprite.scale.set(2,1); // Works, but it's a positive value so it isn't mirrored... this.sprite.scale.x = 2; // Works, but it's a positive value so it isn't mirrored...
Also, are we supposed to add a loadlistener to each sprite we use in case the bitmap hasn't yet been loaded?