A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Collision with two objects

Threaded View

  1. #1
    Always needs help marinebro0306's Avatar
    Join Date
    Jul 2005
    Location
    Philadelphia
    Posts
    166

    Collision with two target objects

    I'm very new to 3DFA, and I know how to do collision. But, how do I do collision between 1 thing I am controlling and two things I want to avoid? The thing I am controlling is called circle, and the two others are square and square2.
    My script:
    if (circle.collideRect (square || square2)){
    loser.show()
    }
    if (!(circle.collideRect (square || square2))){
    loser.hide()
    }

    Loser is the message.
    Help please!
    Last edited by marinebro0306; 07-26-2005 at 10:07 PM.

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