Question

I am having trouble installing/downloading Cory's CollisionDetectionKit. It comes with folders nestled within folders with three .as files at the end. Where should I put these files/ the folders?

Was it helpful?

Solution

Put the com folder in the same directory as your .fla and in your code, at the top, use import to import the files:

import com.coreyoneil.collision.*;

Looking at the files, it looks as you can now call functions like:

CDK.addItem(), CDK.removeItem(), CollisionGroup.checkCollisions(), CollisionList.swapTarget(target), CollisionList.checkCollisions(), etc.

Read More

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top