object touch and its collision polygone

0 favourites
  • 12 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • Problem Description

    I dont know is this considered a bug or a feature but for me its a bit of a problem.

    I have some physics objects in game that have different collisoin polys and i just realised that touch is not detecting entire object but only its collision polygon.

    Attach a Capx

    https://dl.dropboxusercontent.com/u/169 ... ision.capx

    Description of Capx

    green has collision polygon only on upper half and blue has in full size of an object.

    Steps to Reproduce Bug

      Tested in web preview in iphone:
    • Step 1: just drag green one and notice that it catches up only when touched in upper half
    • Step 2: drag blue one and it responds on touch on entire surface. (when tested on desktop Firefox with mouse blue respond to touch when clicked like 50 pixels to the right and to the bottom of object it self??? this got me confused even more...) <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

    Observed Result

    green box only respond to touch if touched on upper half

    Expected Result

    well i expected to touch an object and get correct response and not its collision polygone.

    Affected Browsers

    • Chrome: (NT)
    • FireFox: (YES)
    • Internet Explorer: (NT)

    Operating System and Service Pack

    W7PRO 64 up to date

    Construct 2 Version ID

    163

  • Detecting only when touching the collision polygon seems logic. It's not a bug.

  • Well i guess that is a matter of opinion... to me it's logical to touch entire object/sprite... not just his colision polygone.

    ...but whats with selecting/touching with mouse?

    why is that way off?

  • I get what you said, but the collision box is used for the touch event, it's that way because it's logic . It would be weird if you cannot change the touch zone on an object.

  • Its not biggy.. ill pin some dummy sprite over it to act as touch surface but i must admit i lost several hours brainstorming why its not working...

    Mine object is glass of water and my collision is un "U" shape so space that i was touching was empty...

    Anyway, can you check why blue box cannot be selected/touched in browser?

    Thank You.

  • I just checked your capx everything works fine in chrome. I can select the blue box and drag it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hm.. than it must be a Firefox issue...

  • It works well on firefox too. Try to minimize/maximize firefox once and try again.

  • Ashley

    Hm.. i must say that i cant resolve my issue with this kind of collision poly touch behaviour...

    Ashley?

  • I don't see a bug or a problem.

    From the manual:

    "An object starts dragging when a mouse click or touch falls inside the object's collision polygon. It is released when the mouse button is released or the touch ends."

    Shouting for Ashley when he is so very busy over such a little thing like this is a bit much, don't you think.

  • OK, i guess its mine time to apologize.

    I'll try to find some workarround for my problem

    Cheers!

  • Closing as it is by design that the collision poly is taken in to account when detecting touches.

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