- Home /
Simultaneous Multi-Touch Problem in Truck Parking Like Game
Hello Developers,
I am developing a Truck parking like game where we can simulate a truck using following touch-Inputs:
Onscreen Steering Wheel
Accelerate Button
Brake Button
Front Gear Button
Reverse Gear Button
I have developed everything, as given below in snapshot(like this):
Now all my steering wheel and other inputs are working independently fine, but when i try to apply brakes or acclerate the car using onscreen right buttons while holding the Steering wheel with another touch it's not working.
Please give me a way, how should i make it work? Nowhere i found solution regarding this so if you can help me with sample code or tutorial then it will be fine rather than other forum links.
Thank You Very Much for your Help
I think it's becouse for every control you use separate touch input. So, if one works - others didn't. If it so, you should use one input control for all. Here is nice example how it could be done.
Thank you very much doska, the links looks like solution to my problem. However if i get any problem i will get back to you, I am going to check the solution. Thank you very much again.
what if i have two touch scripts attached to the same gameobject.one script for rotating wheel and other for managing other touch buttons?
Just want to say, i have merged two scripts and now multi-touch is working like crazy. It means having multiple scripts creates some sort of problem. $$anonymous$$erging them together, if possible will solve the problem. However i am curious if we can still achieve same result having multiple touch scripts.