Touch Controls?
JBULLFROG
Member Posts: 58
I have a simple game, character moves left and right. The controls are set up as on screen arrows, left and right. When left arrow is touched (pressed or inside) I tell actor (player to walk left) and when touched (released) I tell actor (player to idle left) And the same for the Right arrow (walk/idle right). I then have two actors between the arrows to take into account you sliding your finger from one arrow to the other and touch is (inside) then tell the (player to idle left or right) depending on the actor that is touched.
The issue I am having is that when you touch the left arrow with your thumb on the iphone then slide it to the right arrow it works, but when you slide your finger back to the left arrow it doesn't seem to respond to the (touch inside) and the payer just keeps walking right when it should be walking left. I hope you can track with this, and any help would be great, thanks.
The issue I am having is that when you touch the left arrow with your thumb on the iphone then slide it to the right arrow it works, but when you slide your finger back to the left arrow it doesn't seem to respond to the (touch inside) and the payer just keeps walking right when it should be walking left. I hope you can track with this, and any help would be great, thanks.
Comments