~Hakurei Shrine~ > Rika and Nitori's Garage Experiments

I just started using Danmakufu,

Pages: (1/4) > >>

Cabblecorento:

and like I should, I'm running into problems.

This script won't seem to work

(I only copied the main loop, as the rest works.


--- Code: ---    @MainLoop {
        SetCollisionA(GetX, GetY, 32);
        SetCollisionB(GetX, GetY, 100);
        if(frame==frame2){
            CreateShot01(1, 1, 3, GetAngleToPlayer, BLACK03, 10);
            CreateShot01(1, 1, 3, GetAngleToPlayer+30, BLACK01, 10);
            CreateShot01(1, 1, 3, GetAngleToPlayer+60, BLACK01, 10);
            CreateShot01(1, 1, 3, GetAngleToPlayer+90, BLACK01, 10);
            CreateShot01(1, 1, 3, GetAngleToPlayer+120, BLACK01, 10);
            CreateShot01(1, 1, 3, GetAngleToPlayer+150, BLACK01, 10);
            CreateShot01(1, 1, 3, GetAngleToPlayer+180, BLACK01, 10);
            CreateShot01(1, 1, 3, GetAngleToPlayer+210, BLACK01, 10);
            CreateShot01(1, 1, 3, GetAngleToPlayer+240, BLACK01, 10);
            CreateShot01(1, 1, 3, GetAngleToPlayer+270, BLACK01, 10);
            CreateShot01(1, 1, 3, GetAngleToPlayer+300, BLACK01, 10);
            CreateShot01(1, 1, 3, GetAngleToPlayer+330, BLACK01, 10);
            CreateShot01(pos1, 1, 3, GetAngleToPlayer, BLACK03, 10);
            CreateShot01(pos1, 1, 3, GetAngleToPlayer+30, BLACK01, 10);
            CreateShot01(pos1, 1, 3, GetAngleToPlayer+60, BLACK01, 10);
            CreateShot01(pos1, 1, 3, GetAngleToPlayer+90, BLACK01, 10);
            CreateShot01(pos1, 1, 3, GetAngleToPlayer+120, BLACK01, 10);
            CreateShot01(pos1, 1, 3, GetAngleToPlayer+150, BLACK01, 10);
            CreateShot01(pos1, 1, 3, GetAngleToPlayer+180, BLACK01, 10);
            CreateShot01(pos1, 1, 3, GetAngleToPlayer+210, BLACK01, 10);
            CreateShot01(pos1, 1, 3, GetAngleToPlayer+240, BLACK01, 10);
            CreateShot01(pos1, 1, 3, GetAngleToPlayer+270, BLACK01, 10);
            CreateShot01(pos1, 1, 3, GetAngleToPlayer+300, BLACK01, 10);
            CreateShot01(pos1, 1, 3, GetAngleToPlayer+330, BLACK01, 10);
        }
if (frame2<10) {
frame2=10;
}
       
        frame++;
frame2--;
    }
--- End code ---

Whenever I try to start it, it has an error screen popping up, apparently suggesting that this is the problem:


--- Code: ---            CreateShot01(1, 1, 3, GetAngleToPlayer, BLACK03, 10);
            CreateShot01(1, 1, 3, GetAngleToPlayer+30, BLAC
--- End code ---

Anybody know what's wrong?

Drake:

Are you using the Shot Replace script already?

Also, you might need to add () to GetAngleToPlayer. I dunno.
Screenshot the error message if not solved.

Cabblecorento:


--- Quote from: Drake on May 12, 2009, 10:35:01 PM ---Are you using the Shot Replace script already?

Also, you might need to add () to GetAngleToPlayer. I dunno.
Screenshot the error message if not solved.

--- End quote ---

I don't even know what a Shot Replace script is.

Drake:

That'd be why. Danmakufu doesn't originally have a black shot color.
RED, ORANGE, YELLOW, GREEN, AQUA, BLUE, PURPLE, WHITE are the colors available.

Stuffman:

Black shots don't exist in the engine, that's why you're getting the error. It doesn't know what a BLACK03 is.

Danmakufu's standard colors are red, orange, yellow, green, blue, purple, aqua, and white.

The Shot Replace script is a thingy someone made to change Danmakufu's default shots into the ones used by CtC. It uses shot_all.png, a popular bullet spritesheet which offers many kinds of bullets that Danmakufu does not, which is why Drake thought you were using it, since you wouldn't have black shots otherwise.

EDIT: Dangit Drake

Pages: (1/4) > >>

Go to full version