1 decade ago by Jerczu
Has anyone have any experience in creating the touch controls for the cocoon?? When I add my buttons programatically the game crashes on me every single time... What's the issue? I dont know.
and I use
Crashes every single time... If I bind it to canvas though it doesnt crash...
var f = document.createElement('img');
f.id= 'fire';
f.src='gun.png';
f.style.position='absolute';
f.style.bottom="0"
f.style.right="0";
f.style.width=100;
f.style.height=100;
document.body.appendChild(f);
and I use
ig.input.bindTouch('#fire','fire');
Crashes every single time... If I bind it to canvas though it doesnt crash...
