- Home /
how can i touch the fast objects ?
Hi everyone , i have a problem in my game
in my game there are some object which move with top speed and i should press it
Everything is good but when their speed rises , i can not touch it , my game like piano tile
Forgive me if there are mistakes in my sentence , Because i'm from Afghanistan
You could cheat and have a static button linked to the speedy object, which only appears when its on screen. The button may appear for a short period of time so you still need to be fast but at least you wouldn't need to track the object all over the screen.
You can check the touch position with your moving object between last and current frame (keep a local var to compare them)
This question has come up before. Create a sphere or other game object and write a scrip to have it track the mouse in front of other objects. As you play faster, see the sphere is at the right place with respect to the finger. If not, your problem is likely hardware lag. If I remember correctly from the old question, the final solution was to have collider trail behind the object by a frame or two. If moving slowly, the collider would be at nearly the same location, but when moving quickly it would trail more and therefore compensate for the hardware lag.
Your answer
Follow this Question
Related Questions
Drag an object to touch position(Problem) 1 Answer
2D UI Button When Touched Image 0 Answers
TouchPhase not firing correctly - Android 3 Answers
Touch drag 2D object in x axis 1 Answer