Prevent touching several buttons at the same time?

Hi

In my iphone game i have two joysticks and several touchbuttons. When i press a button and move my finger over another button (without releasing the finger from the screen) the other button gets activated aswell. I dont want this to happen.

Let say you moving a joystick down so your finger move across the fire-button, then the weapon will fire by misstake.

This is making the game nearly impossible to play on a small screen sense the fingers always attend to touch another button by misstake.

I have tried to “set touch exlusive” but id not get it to work, also i tried to deactivate multitouch but that did not make any diffrance either.

Does anyone happens to know a good way to not make it possible to touch the several buttons at the same time?

Never mind, i solved it by share variabels data between diffrent scripts using static variabels.

Problem solved! :smile: