1 Reply Latest reply: Oct 8, 2009 9:06 AM by Me2LoveIt2 RSS

    How can I NOT let collision happen in Flash CS4(AS3)?

    Me2LoveIt2 Community Member

      I have been playing with collisions for quite a while, but cannot seem to get it just the way i want it to be.

       

      I made a new rectangle into a Movie Clip, with an instance name : "block_mc"

      I made a sphere into a Movie Clip, with an instance name : "ball_mc"

       

      I made the sphere(ball_mc) movable with the arrow keys.(see post:http://forums.adobe.com/thread/491457?tstart=0 )

       

      Now I wanted to try and make the sphere(ball_mc) stop moving so it wont hit the rectangle(block_mc), so that the rectangle(block_mc) would act like a solid object.

      Meaning the sphere(ball_mc) would not be able to touch the rectangle(block_mc). It would act like a wall.

       

       

      Now my problem is I don't know if there is a way of not letting objects collide?

      I tried the ".hitTestObject()" but that did not work for me.
      ~ Thanks for Help and Advice~