0

I have an andengine scene set up with a HUD. The HUD has 2 touch areas (rectangles). The onAreaTouched() works for both of them individually but when the left touch area is being touched the one on the right does not respond to touches and vice versa. It looks as if the two touch areas are running on the same thread. I need the two touch areas to respond simultaneously. How can I achieve this?

1 Answer 1

1

Do you have multitouch activated? Add this in the onCreateEngineOptions after creating your engineOptions

        yourEngineOptions.getTouchOptions().setNeedsMultiTouch(true);
1
  • Thanks. Been trying to figure out what's wrong for 2 days. Such a simple solution.! I don't know what the harm is in having this enabled by default?
    – Uwais A
    Jul 16, 2014 at 12:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.