ZhaoYun's Forum Posts

  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oh WOW! I am excited to learn!

    Lets start with this question, how do we specify touch?

    I think this is the best way to ask:

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

  • i have been facing the similar problem. simple game, work fine on html, work fine on appmobi simulator, gone absolutely retarded on wifi test.

    however my previous stripdown version works fine, will try to find out whats went wrong in the middle..

    pleaae do update if u found anything,

  • wow! do you mind to share?

  • I'm glad that someone find this useful =)

    *I donno why lately I just can't upload to dropbox and share the html, it always error 404*

    I am sorry there is no html example

  • I think this is the prettiest and simplest way to do it.

    <img src="http://dl.dropbox.com/u/32679138/thumbstick.png" border="0">

    Set a drag object, and use the angle between it and the "thumbstick base" to set the angle of motion.

    You can definitely be creative and add the running/walking control by either adding separate base,

    or just by calculating the distance between thumbstick and the base.

    Eg,thumb is dragging-->playerbox move distance(thumb.x,thumb.y,base.x,base.y) / "Insert your number here"

    Capx

    Simpler, Neater, offering precised control, and offer easier customization.

    P.S.: I guess I done my little part to contribute to this forum =P

    I will appreciate someone else spend some time to teach me all the expression and tricks about multi-touch~!(No the manual and tutorial is not helping at all)

  • Found the problem, it is a due to 2 shockwave plug in that sneak into my chrome.

    Now I got it fix, I don't even want to know how it cause such an specific problem.

    Thanks Ashley for trying to help me, and sorry for taking your time. =)

  • The problem occurs only when switching to R109.

    When sound files is imported to Sound, it don't play in preview.

    However the same sound if imported to Music, it plays normal.

    If export to awesomium, everything works just fine.

  • Ashley

    Aw Shxt, I saved the wrong project for the bug reporting.

    The link has been fix and the sound is not working now. =)