i have a problem with my script that use canvas.
I want to move my image but with drawImage the image moves but the result is something like that:
so, my code is
function desenhaBonecoDir(){
var ctxt = document.getElementById('camadaBoneco').getContext("2d");
bonecoX = bonecoX -10;
ctxt.drawImage(bonecoLeft, bonecoX, bonecoY);
}
and i think that the only way is using SVG (retained mode). It is correct?
Any tutorial? or example? - "how moving an image with SVG" How i can solve that?
Thanks