object touch and its collision polygone

Bugs will be moved here once resolved.

Post » Mon Mar 03, 2014 10:58 am

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...) :(

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
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Mon Mar 03, 2014 1:35 pm

Detecting only when touching the collision polygon seems logic. It's not a bug.
B
39
S
15
G
5
Posts: 295
Reputation: 6,089

Post » Mon Mar 03, 2014 2:44 pm

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?
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Mon Mar 03, 2014 2:48 pm

I get what you said, but the collision box is used for the touch event, it's that way because it's logic :D. It would be weird if you cannot change the touch zone on an object.
B
39
S
15
G
5
Posts: 295
Reputation: 6,089

Post » Mon Mar 03, 2014 3:33 pm

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.
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Mon Mar 03, 2014 3:40 pm

I just checked your capx everything works fine in chrome. I can select the blue box and drag it.
B
39
S
15
G
5
Posts: 295
Reputation: 6,089

Post » Mon Mar 03, 2014 3:41 pm

hm.. than it must be a Firefox issue... :(
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Mon Mar 03, 2014 3:45 pm

It works well on firefox too. Try to minimize/maximize firefox once and try again.
B
39
S
15
G
5
Posts: 295
Reputation: 6,089

Post » Mon Mar 03, 2014 7:41 pm

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

Ashley?
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Mon Mar 03, 2014 7:51 pm

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.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,375
Reputation: 58,432

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests