Swipe and Touch

TebrocTebroc Erie PaMember, PRO Posts: 10
edited July 2012 in Working with GS (Mac)
Hi All,

I'm working on a game where I have a button for acceleration then I'm using another area of the screen for swipe (change direction) I used Tshirt Booth's video for accomplishing the swipe controls (left and right.) Both the swipe controls and the accelerator button work great however I seem to be running into issues where the accelerator and swipe interfere. If I hold the accelerator button down, sometimes my swipe is ignored until i release the button and try again. This might make more sense to me if it weren't for the fact that about half the time it seems to work. Anyone know what I might be doing wrong or is possible that I'm trying to do something out of the iPhone's specification? Thanks!

Best Answer

  • PhoticsPhotics Posts: 4,172
    edited July 2012 Accepted Answer
    If you're using on "Touch", then it seems to me like only the first touch is registered. If you have multiple touch points, then which touch point is touching the accelerator and which touch is doing swiping?

    Maybe my dual control template would help...
    http://photics.com/gamesalad-template-dual-controllers

    Basically, it uses rules to see which touch point is inside the actor. The same could be applied to your accelerator. The bottom part of the screen can be for acceleration. The top part of the screen could be for swiping... or multiple actors could be used to create a custom shape for the swipe area.

Answers

  • TebrocTebroc Erie PaMember, PRO Posts: 10
    Thank you Photics, your tutorial was very helpful. Much appreciated!
Sign In or Register to comment.