Project-Rekt / engine

Game Engine - Currently on version MASON
https://project-rekt.github.io/engine/index.html
Apache License 2.0
1 stars 3 forks source link

Remove actor afterimage #23

Closed D13Lee closed 4 years ago

D13Lee commented 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.