user3400004
user3400004

Reputation: 1

TypeError: Error #2007: Parameter hitTestObject must be non-null. Platform flash game

Now I'm having problems with my flash game especially going to level two. The problem started when I added the container for the locked door and the key. The game was in working condition like the sprites work, getting the key in level one works and unlocking it works. Trying for Level 2 becomes a pain. Help me please.

TypeError: Error #2007: Parameter hitTestObject must be non-null.

at flash.display::DisplayObject/_hitTest()
at flash.display::DisplayObject/hitTestObject()
at TheHunterWithinv0_Scene1_fla::MainTimeline/loop()

Upvotes: 0

Views: 900

Answers (1)

Abhishek
Abhishek

Reputation: 1714

Error comes when object is removed from the stage, You should check the reference of object you are passing in hittestobject.

Upvotes: 2

Related Questions