00:00
00:00
Newgrounds Background Image Theme

Cuddlymuffintop just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

AS3: hitTestPoint doesn't work

462 Views | 2 Replies
New Topic Respond to this Topic

AS3: hitTestPoint doesn't work 2014-08-28 08:34:36


Good day, so right now I'm trying to make a small Jump and Run game, but for some reason my hitTestPoint fails to detect the collision between the background and my character. I've searched for a solution but couldn't ind anything. The program detects if I don't collide though, no clue what's going on. I'd be glad if someone could help me.
The code for the collision is at the bottom.
http://www.newgrounds.com/dump/item/154f1fb5285893a4db8f05d5beb98756

Response to AS3: hitTestPoint doesn't work 2014-08-28 08:54:55


At 8/28/14 08:34 AM, tomfra wrote: Good day, so right now I'm trying to make a small Jump and Run game, but for some reason my hitTestPoint fails to detect the collision between the background and my character. I've searched for a solution but couldn't ind anything. The program detects if I don't collide though, no clue what's going on. I'd be glad if someone could help me.
The code for the collision is at the bottom.
http://www.newgrounds.com/dump/item/154f1fb5285893a4db8f05d5beb98756

Only glanced at it quickly but you call your collision check only once. Put your collision code in the enter frame handler.

Response to AS3: hitTestPoint doesn't work 2014-08-28 08:59:41


Oh man thanks a lot, it works now. Completely forgot thet it only checks once.