1 decade ago by dmen
In a project I draw a dashed line on the canvas using something like:
var ctx = ig.system.context;
ctx.strokeStyle = '#0066ff';
ctx.beginPath();
Then a moveTo, and a series of lineTo's... all is working great. I do this in the draw() method. The problem is the line draws on top of all other impact entities. Can I fix this?
var ctx = ig.system.context;
ctx.strokeStyle = '#0066ff';
ctx.beginPath();
Then a moveTo, and a series of lineTo's... all is working great. I do this in the draw() method. The problem is the line draws on top of all other impact entities. Can I fix this?