So, I've been trying to make an analog stick based around https://www.scirra.com/tutorials/398/touch-stick-controllers/page-3 so that people who play my game on a touchscreen have a half decent control method.
The implementation I have works perfectly in a modified version of the demo capx from page 5 of that link. I can move the player around (a spacehsip) in full 360 degrees and it moves.
However when I copied and pasted it over to the main game, I encountered a problem. The analog stick works fine on the game layer, however the problem with that is that then when I move the ship, the analog stick moves away. The problem is that when the analog stick is on the game UI layer, which is always onscreen, the Drag and Drop behavior used by the analog stick ceases to work. This is the case on IE10, and Safari on my iPad.
I am using Constuct 2 r118.
Here are some links that might help out:
- CAPX file of game: http://sdrv.ms/U6IadN
- Game in Browser, with the analog stick set to visible on all devices: http://rymate.co.uk/space
Any help would be appreciated.