Analog Touch Control - Help

From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • Hi everybody,

    I'm trying to do a sort of an analalog touch control system, it is for mobiles platform (currently tested in Defy+ and Galaxy S3) so i hope that the moviles developers could help in this one.

    Well, the problem is that i can't get the control to work correctly, so far i manage to make the character move correctly as long as the screen does not move, but once the character move and the screen moves along with it, the does not work anymore. I think that this is happening because the layer parallax property (in which is the control pad) is set to 0,0.

    This is the only "code" or event i'm using to create the movement.   <img src="" border="0">.

    And here is the .capx

    I would really apreciate if someone could help me to figure this out.

    Thanks in advance!

  • Use touch.AbsoluteX and touch.AbsoluteY instead of touch.X and touch.Y to get the touch position on the canvas rather than the position on the layout.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks ramones!!!! really helpful, and really fast too, <img src="smileys/smiley4.gif" border="0" align="middle" />

    Now it works perfectly! Thanks again!

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