Unresponsive D-Pad

CaramelTigerClanCaramelTigerClan Member Posts: 143
edited November -1 in Working with GS (Mac)
I have set up a D-Pad that controls my ship perfectly, within GameSalad. The problem arises when I test out my D-Pad on the phone. It is often times unresponsive, for example if my finger leaves the up button, the ship will still travel up.

Is there anyway to fix this? For now I have the buttons passing booleans when they are pressed and released.

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    you could modify codemonkey's joystick demo. The idea is that you have 5 touch actors that constrain to touch 1, touch 2, etc. (look at his demo and you'll see what I mean - it's a bit complex). But then you could modify it so that the touch actors activate the 4 d pad buttons.

    So when UpButton overlaps with touch1actor
    change up to true
    Otherwise
    change up to false

    that means that when your thumb leaves the d pad the touch actor will move with your thumb and off the button causing game.up to be changed to 0
Sign In or Register to comment.