-
Problem firing fast
I'm making a space game but my ship can only fire about 1 time per second or I get this Error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display:isplayObjectContainer/removeChild()
at CollisionController/checkBullets()[/Users/Bill/Desktop/lunar_mayhem 2/CollisionController.as:733]
at GameController/enterFrameHandler()[/Users/Bill/Desktop/lunar_mayhem 2/GameController.as:236]
Anyone know how I could fire more bullets and not get errors. Also the whole game shuts down when I fire too fast. Thanks.
-
Anyone know how I could fire more bullets and not get errors.
Write errorproof code
Flash gives you the complete information about the error you're getting.
You're obviously trying to remove some object that doesn't exist
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|