Results 1 to 4 of 4

Thread: collision detection, problem with my code?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Posts
    108

    collision detection, problem with my code?

    well, im working with my box spawner program again, trying to get it to detect collisions so the boxes will stack and bounce off each other etc, and im having a slight problem. after there is more than 1 box spawned, they just stop moving, like they are endlessly colliding causing their speed to slow to a stop as in the code that executes when there is a collision, and this all occurs when there is more than 1 box, it doesnt matter if they are colliding or not. the collision detection code works i know, but i think there is either a problem with my loops going thru checking each box for a collision with every other box, or in the form_load where i define the rect's of each box. can someone help?

    code attached.
    Attached Files Attached Files

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