ZhaoYun's Recent Forum Activity

  • Still desperately waiting for answer.

    Does construct 2 has expression for coordinate of each touch?

    for example the famous multi touch plugin allows expression of

    TouchX(0) First touch

    TouchX(1) Second touch

  • ludei

    thanks for replying

    audio issue: errr, I am not a programmer (thats why I use construct 2), so all I can tell you is construct 2's mute action don't translate to cocoonjs audio mute.

    orientation lock:

    I see what you mean, cocoonJS launcher has only portrait vs landscape, so I can't prevent the portrait to rotate upside down, however, the cloud compilation system does have the option to disallow upside down portrait~

  • New C2 touch plugin support multi touch, but are there any expression for [coordinates of each touch]?

    I mean:

    TouchX(0) will be the X coordinate for the first touch

    TouchX(1) will be the X coordinate for the second touch

    If no then I think this plugin is still very necessary for touch device and the fact that it can't be export to cocoonj makes it a tragedy!! T.T

  • Try Construct 3

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

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

    Thanks for taking interest in my problem.

    P.S.: Touchpad is named "Control" sprite in the picture.

    I was planning to set up 2 touch-analog control stick for player1, and player2.

    Each player touches their "Touchpad" and control their own respective players.

    I plan to achieve this by moving the playerbox at the angle between origin of "Touchpad" and the coordinate of Touch.

    (Move player 5 pixel by(angle(touchpad.x,touchpad.y,touch.x,touch.y)

    This implemention failed because other touches that is not touching touchpad influence the direction of player movement too.

    Conclusion of my problem: I want to limit the expression touch.x,touch.y, to the touch that only touches the touchpad.

  • Hello? anybody there..?

  • Have you read the appmobi Tutorial and make sure you did not use anything that appmobi don't support?

    Give cocoonJS a try too, I personally like it more.

  • Touch.X and Touch.Y always takes the coordinate of the first touch.

    How do we get the coordinate of 2nd, 3rd, and 4th touches?

  • for me, cocoonj have 2 problems:

    1)I can't mute or set the sound to silent.(or change the volume)

    2)unlike app mobi, it can't lock the orientation and prevent auto-rotation.

    If this 2 get fix I believe cocoon would be perfect for me.

    ludei

  • After running through tutorial, manuals and forums, and pm'ing, I guess i will have to ask this out here..

    How to limit action from taking the coordinate of a specific touch?

    eg.

    capx

    <img src="https://dl.dropbox.com/u/32679138/My%20Question.jpg" border="0">

    <img src="https://dl.dropbox.com/u/32679138/touch%20question2.png" border="0">

    <img src="https://dl.dropbox.com/u/32679138/touch%20question3.png" border="0">

    the intention here is to move the playerbox ONLY when the touching the "Control" sprite & move the player towards the direction that ONLY THAT touch generates!

    However, I failed to limit the "action" to take touch.x, and touch.y from ONLY the touch that touches "Control" sprite.

    PS:To reproduce this "Error" in capx, you will have to touch outside of the "control sprite" first, and then proceed to touch the control. playerbox will move in the direction to the touch that is not touching the "control sprite" as opposed to move in direction to the touch that is touching the "control sprite".

  • Bump!! i need to know this too.

  • jayderyu

    Thanks for the explanation~

    Although I know about the always firing thingie, but I always wonder if there is an exception in some cases. haha. Good to finally get clarified.

  • Interesting input!

    I too, don't like the fact that using drag and drop means I have to retouch- and re-drag the thumbs from the center position every time I accidentally drop it.

    (If I learn how to do the thing I asked on previous post, I would change the touch control into calculating angles between "Control" and "Touch" right away)

    I opt using "is not dragging" over "on drop" in order to have the thumbs position on the center of the touch pad on the start of the layout, and in case that it was dislocated from the touch pad for whatever reason.

    I always wonder though, if an event is always true, does it makes the event always firing?

    for example as you say, when I use "when thumb is not dragging, set position of thumb to control", does the construct doing work reposition thumb to control every tick, taxing performance?

ZhaoYun's avatar

ZhaoYun

Member since 13 May, 2012

None one is following ZhaoYun yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies