Help With Controls Please

Hello :)

For my game i created DPAD style controls that are very simple....tap the up button to go up, tap the right button to go right ect. Whats wrong with these controls are that when using them on an actual iPhone, your finger would miss or slip off the control button since the DAPD is rather small, but i need it small for my game. A resolution i thought of is to make it so even if you miss the control button by a small amount, the controls will still activate. For example, if you want to move up, but your finger slips off the actual controls by a small amount, the actor will still move upwards. How can i implement this in my game? By the way, my controls are based off of the "Cross Platform Controller Template" if it helps you answer the question. Thanks! :)

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    You could have a bigger bounding box on your sprite so for eg have a 48x48 sprite with a 32x32 D pad direction placed in the middle with blank space on the rest of the sprite that way even though the edges of the sprite look blank GS will still pick up the touch.

    Another way is to make a new actor thats bigger than the one you currently use turn the alpha down to 0 and have the rules in there but its not optimal as your doubling up on actors.

    Darren.
  • jblb2424jblb2424 Member Posts: 65
    Thanks for the reply? :) But what is a sprite? I have never heard of that before in terms of game salad
  • UtopianGamesUtopianGames Member Posts: 5,692
    Sprite is the art.

    Darren.
Sign In or Register to comment.