dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Problem firing fast

  1. #1
    Member
    Join Date
    Apr 2008
    Posts
    30

    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.

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Russia: Western Siberia
    Posts
    268
    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

  3. #3
    Member
    Join Date
    Apr 2008
    Posts
    30
    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center