Touchscreen analog stick not working correctly

0 favourites
  • 3 posts
From the Asset Store
Everything you need to incorporate old school hip hop bangers.
  • So, I've been trying to make an analog stick based around 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:

    Any help would be appreciated.

  • Well a couple of things I should note.

    The tutorial was created before ForID. The D&D behaviour was a requirement at the time. You can phase out the D&D behaviour and instead rely using ForID. The tutorial will be updated to reflect this when I have more time.

    Here is the fix.

    dl.dropbox.com/u/14087254/spaaaaaaaaaaace.capx

    oh. I did some fidly for testing. If I missed anything I'm sure you can fix it for mobile :)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks!

    Just gotta figure out why it only goes diagonally now :) (Unless thats's an IE issue)

    Edit: Nvm fixed it. Thanks again :D

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)