Questions tagged [hittest]

Hit-testing (hit detection, picking, or pick correlation) is the process of determining whether a given object intersects another given object shape, line, or curve drawn on the screen.

Hit-testing (hit detection, picking, or pick correlation) is the process of determining whether a given object intersects another given object shape, line, or curve drawn on the screen.

Most commonly, hit-testing is used by GUI environments to respond to user actions. In addition, hit-testing is used in small-scale games, which do not require much computing power, and are thus able to perform all of their collision detection tests in one frame of the game loop.

In Web programming languages such as SVG and CSS, this is associated with the concept of pointer-events (e.g. user-initiated cursor movement or object selection).

543 questions
-2
votes
1 answer

How to pass a responder to ScrollView?

My view hierarchy This is the View layer I created. I want to transfer all Touch Events that happen in UIView to UIScrollView, but I don't know how. I didn't put it as a SubView of ScrollView because UIView should be lock. I want to use the default…
jkey
  • 3
  • 2
-2
votes
1 answer

How to check if two objects are same color in a hit test in AS3

My program is a simple game where colored rectangles fall down the screen. Your player changes color depending on what button you click on, the aim is to make your player the same color as the falling object. How do i do a hit test object and check…
-2
votes
1 answer

Add child + hittest?

AS3 Flash - Hey, I made a game like "Flappy Bird". Can someone help me how to check "character" hitted a wall? This game generate every 2.5 seconds two walls. (Wall and Wall2) How to check that character hitted it? function newWall():void { var…
1 2 3
36
37