9 years ago by denkle
TouchButton Plugin for Impact. With fix for scaled Canvas
https://gist.github.com/den-kle/0e150dc4bc162f934734cba1974402f8
https://gist.github.com/den-kle/0e150dc4bc162f934734cba1974402f8
This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact
Cannot set property 'right' of undefined
ig.input.presses[this.action] = true;
this.buttons = new ig.TouchButtonCollection([ new ig.TouchButton( 'left', {left: 0, bottom: 0}, ig.system.width/2 - 8, ig.system.height ), new ig.TouchButton( 'right', {right: 0, bottom: 0}, ig.system.width/2 - 8, ig.system.height), ]); this.buttons.align(); }