Hit test area as collision box

I’m so sorry, I’m sure this has been asked before…

Is there a way to make the hit test area of a display object the same as it’s collision box?

For example, I’m importing the sample trampoline image with a physics definition provided by PhysicsEditor and while the collision area is fine, the touch event still fires if I’m tapping somewhere outside of the collision box. I’d like the two to be the same.

Thanks,

Matt. [import]uid: 8271 topic_id: 9167 reply_id: 309167[/import]

@Matt,

Maybe you can add another image behind the actual object. Make sure the back object is similar in size to the collision box. Set the back image isVisible to false and the isHitTestable to true.

The only problem with that is you will have unnecessary object that just take up texture memory. [import]uid: 12455 topic_id: 9167 reply_id: 33625[/import]