- Home /
Touch Lag With S2
This is what I'm doing:
Update () {
if (Input.touchCount > 0) {
tempDirection = Input.touches[0].deltaPosition.x;
}
directionVector.x += tempDirection;
if (directionVector.x <= -maxMove)
directionVector.x = -maxMove;
else if (directionVector.x >= maxMove)
directionVector.x = maxMove;
if (fakeShip.position.x <= -maxMove)
fakeShip.position.x = -maxMove;
else if (fakeShip.position.x >= maxMove)
fakeShip.position.x = maxMove;
fakeShip.position = directionVector;
if (fakeShip.position.x >= -maxMove && fakeShip.position.x <= maxMove) {
myTransform.position = directionVector;
}
}
So basically you can move object with touching and moving your finger left and right. (typical arkanoid game)
This works nicely on most android phones (tested with ZTE Blade, Samsung Galaxy Nexus (4.0ICS) ...) But there is serious delay when you are trying to play this on Samsung Galaxy S2 (4.0 ICS) tried at least with 3 different S2 phone and it has same delay. (This phone is the most popular, so I need to get this fixed)
Any advices?
Answer by SER_Freeman · Jun 19, 2012 at 12:59 AM
I have exactly the same problem on my galaxy s2 with android 4.0.3.I have tried friends galaxy s2 with android 2.somethink and it works perfectly. Did you find any solution?
Your answer
Follow this Question
Related Questions
iOS : Delayed response to touch began? 1 Answer
Android touch is not dynamic 1 Answer
how do you add camera lag or delay for flight sim 1 Answer
Android lag on Nexus 7 (2012) 0 Answers