public void setSpinning(String name) {
        numAnimationFrames = 8;
        BufferedImage im = registry.getImageLoader().getImage("Projectiles/" + name);
        if (im != null) {
            for (int i = 0; i < numAnimationFrames; i++) {
                AffineTransform tx = null;
                AffineTransformOp op = null;

                //rotate the image based on where you're shooting
                tx = new AffineTransform();
                tx.rotate(Math.toRadians(i * 45), im.getWidth() / 2, im.getHeight() / 2);

                op = new AffineTransformOp(tx, AffineTransformOp.TYPE_BILINEAR);
                images[i] = op.filter(im, null);
            }

            width = im.getWidth();
            height = im.getHeight();
        }

        isSpinning = true;
        currentAnimationFrame = 0;
    }