1 decade ago by DaveVoyles
I continue to get the error listed above for some reason, and I'm not sure why. It;s coming from entities-panel.js, and seems to occur when my player is being hit, or about to be killed.
It's annoying, because chrome keeps pausing when this happens. The odd thing is that it doesn't happen each time.
What do you think could be causing the issue?
Here is the draw() call from the .js file:
It occurs on the wto lines that set the pos.x.round and pos.y.round for the rectangle.
It's annoying, because chrome keeps pausing when this happens. The odd thing is that it doesn't happen each time.
What do you think could be causing the issue?
Here is the draw() call from the .js file:
draw: function() { this.parent(); // Collision Boxes if( ig.Entity._debugShowBoxes ) { ig.system.context.strokeStyle = this.colors.boxes; ig.system.context.lineWidth = 1.0; ig.system.context.strokeRect( ig.system.getDrawPos(this.pos.x.round() - ig.game.screen.x) - 0.5, ig.system.getDrawPos(this.pos.y.round() - ig.game.screen.y) - 0.5, this.size.x * ig.system.scale, this.size.y * ig.system.scale ); }
It occurs on the wto lines that set the pos.x.round and pos.y.round for the rectangle.