Closed D13Lee closed 4 years ago
after calling destroy() in the actor class, which consists of
this.ctx.clearRect(this.x, this.y, this.width, this.height); this.stage.removeActor(this)
The last draw remains on the screen. Having another actor draw over this erases the afterimage.
after calling destroy() in the actor class, which consists of
this.ctx.clearRect(this.x, this.y, this.width, this.height); this.stage.removeActor(this)
The last draw remains on the screen. Having another actor draw over this erases the afterimage.