1 decade ago by richardelms
Hi Guys
I have followed the documentation but my buttons do not seem to pay attention to the anchor settings.
They are all drawn on top of each other in the top left of the screen.
No matter what I change the buttons are always drawn in the top left.
Any ideas?
Thanks
Rich
I have followed the documentation but my buttons do not seem to pay attention to the anchor settings.
They are all drawn on top of each other in the top left of the screen.
this.buttons = new ig.TouchButtonCollection([ new ig.TouchButton( 'left', {left: 0, bottom: 0}, 40, 48, this.buttonImage, 0 ), new ig.TouchButton( 'right', {left: 48, bottom: 0}, 40, 48, this.buttonImage, 1 ), new ig.TouchButton( 'shoot', {right: 48, bottom: 0}, 40, 48, this.buttonImage, 2 ), new ig.TouchButton( 'jump', {right: 0, bottom: 96}, 40, 48, this.buttonImage, 3 ) ]);
No matter what I change the buttons are always drawn in the top left.
Any ideas?
Thanks
Rich