Trying to draw text over a sprite and it seems the only way to do that would be to make the text itself into a sprite and add it that way, the only problem is whenever it's near the other sprite it's being erased. What's the proper way to layer sprites?
Here's what I'm working with for context:
Here's what I'm working with for context:
Code:
this._box = []
this._boxname =[]
for (i = 0; i < 5; i++) {
this._box[i] = new Sprite_Button();
if (typeof monbox[i] == 'undefined') {this._box[i].bitmap = ImageManager.loadPicture('Icon Panel')} else {this._box[i].bitmap = ImageManager.loadPicture($dataActors[monbox[i]].meta.icon)}
this.addChild(this._box[i]);
this._box[i].x = 75 + (161 * i);
this._box[i].y = 300;
this._boxname[i] = new Sprite(new Bitmap(this._box[i].x,this._box[i].y));
this.addChild(this._boxname[i]);
this._boxname[i].bitmap.outlineColor = 'black';
this._boxname[i].bitmap.outlineWidth = 4;
this._boxname[i].bitmap.fontSize =16;
this._boxname[i].bitmap.drawText('test', 75, 310, 150,0, 'left');
}