My main view has several (perhaps many) polygonal active areas implemented as subviews. When the user touches the view, I want to identify if she hit one of those active areas.
I want to open a context menu when the user right clicks on an object but I want to pass all other mouse hits through it.
I\'m trying to write a simple firemonkey test app. I have a form, with a panel (align:= alClient). On the form are 2 TCircle\'s.
Suppose we have a stage with two squares, like so: Suppose we\'d like the yellow square to be initially hidden, and we\'d like that as long as the mouse cursor is inside the bounds of the red square
I have a grid that contains 3 rows, one of which contains a TextBox thats can be edited. The grid sits inside a paretn that provides drag functionality to enable it to moved around a canvas. In order
I\'m working on a game project, and I am working on the AI aspect of the game. I want the enemy objects to start aiming and shooting at the player when they are in sight of the enemy, and i came acros
Im craeating a dart scoring program (to use myself in my dart room) and want the user to be able to click in different areas of a picture of a dart board to register the thrown darts.
I create image in this way: var orc = new Image(); orc.src = \"./orc.png\"; I use image in objects like this:
I know this should be possible and Im pretty confident with my code. I have two arrays that are dynamically filled from another function. When two sprites from each array interact they should trigger
When you use a geometry for the hit test parameter is there a way to get the point of intersection (i.e. hit开发者_StackOverflow) between the two geometries, right now it only says that it has been hi