- Joined
- Feb 3, 2021
- Messages
- 15
- Reaction score
- 1
- First Language
- English
- Primarily Uses
- RMMV
So I've managed to get the drill effect to work on my Cleaning Plugin. However, when I apply a simple mask to the layer hidden below the topmost rock layer, it gives me the above error. Here is how I did the code that might have caused the error (plus the bitmap I am using):
JavaScript:
Spriteset_Cleaning.prototype.punctureHoles = function() {
this._holeSprite = new Sprite();
this._holeSprite.bitmap = this.holeBitmap();
this._holeSprite.bitmap.blt(this._holeSprite.bitmap, 0, 0, 16, 16, 0, 0); // blit onto fresh canvas
this._holeSprite.move(TouchInput._x, TouchInput._y);
this._rockL1.addChild(this._holeSprite);
this._rockL2.mask = this._holeSprite.children;
};