Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by is2dark4u

First of all, hello to everybody.
Secondly, my problem. I`ve defined my buttons just like Dominic defined them in his Biolab`s index.html. And in mai.js i`ve devined like this:

init: function() {
	ig.input.bind( ig.KEY.LEFT_ARROW, 'left' );
	ig.input.bind( ig.KEY.RIGHT_ARROW, 'right' );
	ig.input.bind( ig.KEY.C, 'jump' );
	ig.input.bindTouch( "#buttonLeft", 'left');
	ig.input.bindTouch( "#buttonRight", 'right');
	ig.input.bindTouch( "#buttonJump", 'jump');
}

But, when I`ve tested them on Galaxy S mobile, I can't touch two buttons in the same time. I mean, if I want to move right and jump in the same time, I can't.
Can enybody explain how to make multitouch with my buttons? Thank`s!

1 decade ago by dominic

Unfortunately that's a limitation of Android's browser. See this thread.

1 decade ago by is2dark4u

Understand.
Thanx!

1 decade ago by is2dark4u

Hey, me again. What values do you have for your div id="game" from your index.html that you gave us like exemple for iPhone settings? I have some problems with my id of div that I defined like this:
#ctrl {
position: absolute;
left: 0px;
right: 0px;
bottom: 0px;
border: 1px solid #555;
border: 0px;
display: none;
}

and...
<div id="ctrl">
<div class="button" id="buttonLeft"></div>
<div class="button" id="buttonRight"></div>
........
</div>
With this settings, the buttons are overlaps and I don't know why this happens.
Thank you!

1 decade ago by is2dark4u

I`ve figured out..int the end...but..I don`t know if this is the only solution because now, if I keep pushed a button, in iPhone browser appears something like I want to copy a image, or, sometimes, appears a magnifier. This is annoying `cause, when this happens, my move that the button define doesn`t stop until I press again that button.
My solution for define the buttons was:
#buttonLeft { left: 0; background-position: 0, 0; }
#buttonRight { left: 80px; background-position: -80px, 0; }
#buttonShoot { left: 160px; background-position: -160px, 0; }
#buttonJump { left: 240px; background-position: -240px, 0; }
Repeat, I don`t know if this is the only solution so, if you have others..please..post it.
Thanks again!
Page 1 of 1
« first « previous next › last »