Re: Hitting Layers

2010-10-04 Thread Curious Yogurt
I solved the problem by examining checking to see if the game was in fullscreen mode, and then changing how the NSPoint was calculated. It turns out that everything was slightly offset in fullscreen mode when using convertScreetToBase:. Not exactly a solution with an explanation; but at least it

Re: Hitting Layers

2010-10-02 Thread Matt Neuburg
On Thu, 30 Sep 2010 20:53:56 -0700, Curious Yogurt said: >around. I'm wondering whether I need to modify the first line of the method >(NSPoint translated = [[gameController window] convertScreenToBase:mouseloc];) >when in fullscreen mode? I'm wondering that too. CALayer's hitTest requires a poi

Hitting Layers

2010-09-30 Thread Curious Yogurt
I'm working on a game using core animation that depends on hitting CA layers. This works great as long as the user is not in fullscreen mode; when in fullscreen, hits are still registered, but they do not correspond to the objects. Any ideas what might be going wrong? Here is my code for detecti