I have found this code in as2 and I am trying to make it have collision detection, with objects of different shapes but have been unable to do so. Does anyone know how to do this.
The one I wrote was taken directly from a movie I had made. You have to apply it to the movie clip that you want to interact with the moving character/object. _root.item would be changed to something like bullet or collideobject, _root is not needed in all scenarios, I just used it in my case.
Where it says CODE GOES HERE, you would pass variables and do whatever you need the collision to do (applying to the first set of code also if needed).