Need help making the most accurate left / right touch screen logic
Hi there everyone,
I'm working on a project that requires speed in tracking touch screen activity. Imagine the old game "track and field" where your left side of the screen is your left foot and the right side of the screen is your right foot. the importance is to always require one foot before the other.. so two left touches wouldn't count.. only the first one.. same with two touches in a row on the right..
So in my tinking.. its important that each side also not be pressing down.. when the other touches.. so for example in one of my recent tests.. holding down on the right pad would mean each left pad touch would register two steps because the right side is constantly being touched..
I just wonder what the most efficient way to do this kind of left / right logic is.. since its about speed, minimal logic should be applied to insure the fastest response times
Thanks!
Caleb
I'm working on a project that requires speed in tracking touch screen activity. Imagine the old game "track and field" where your left side of the screen is your left foot and the right side of the screen is your right foot. the importance is to always require one foot before the other.. so two left touches wouldn't count.. only the first one.. same with two touches in a row on the right..
So in my tinking.. its important that each side also not be pressing down.. when the other touches.. so for example in one of my recent tests.. holding down on the right pad would mean each left pad touch would register two steps because the right side is constantly being touched..
I just wonder what the most efficient way to do this kind of left / right logic is.. since its about speed, minimal logic should be applied to insure the fastest response times
Thanks!
Caleb
Best Answer
-
The_Gamesalad_Guru Posts: 9,922
Go to http://gleesongroupmedia.com/gsguide/gsguide.html there is a template there called jump controls it locks out the second touch left or right when right or left is touched first.
Answers
Thanks
Caleb