I'm having trouble with a touch analog stick for 8 direction movement. No matter what I try I can't get the player sprite to move true Left, Right, Up or Down. The player always moves at an angle like in an isometric game.
I followed Jason Jarvis' tutorial on touch analog sticks, experimented with his examples and added some events for 8direction movement. Here's what it looks like:
<img src="https://www.dropbox.com/s/rxpccmq7ifayp9t/joystickTrouble.png" border="0">
Image
I added the stuff below the red line. It works, but not the way it is suppose to work. Can someone help me with a solution?
I was also wondering if it was possible to use drag and drop instead, but fix it where you can drag and drop anywhere on the screen and not just solely on the player sprite to move the player sprite around. Maybe place a tiled image covering the entire screen and have that connected somehow to the player with a drag and drop behavior and have the tiled sprite box reset to the center of the screen with not in touch, but not resetting the position of the player to the center along with it? I think the accuracy of drag and drop would be ideal for touch controls, if all possible.