[AS3] hitTestPoint() not working in Browser
Hi,
I'm suing hitTestPoint() in a game to determine if the character is standing on the floor. If it's not, hitTestPoint() with the floor returns false and I apply some gravity, making the char fall down.
This works when I run in Flash Professional.
But in the browser it doesn't. The character falls endlessly, because hitTestPoint() keeps returning false.
I outputted all the coords I'm using in hitTestPoint() and they are the same in Flash and in the browser.
I tried making the floor higher and made more space between the char and the floor. In Flash the char falls until it reaches the floor, like it should be, in the browser it goes all the way down through the floor and still falling...
Any ideas?
Last edited by geuz; 11-13-2011 at 01:31 PM.
|