~Hakurei Shrine~ > Rika and Nitori's Garage Experiments
I'm really lost @_@
<< < (4/12) > >>
Garlyle:
First off, that's incorrect: you CAN have Negative angles on your bullets.  In fact, in the manual text with Danmakufu, it refers to up as -90, not 270.

With that said, it's important to remember that Right = 0', and Down = 90', so you may want to adjust for that.

Also, your error is in this:
LastSpell(false);

LastSpell doesn't call a parameter.  It's either present in a script as LastSpell; (In which case it's a last spell), or it's not in at all (in which case it's a normal spell).
Cyclone722:
Oh. Well, I just learned something new!
Halca:
I used your advice and now the script runs, but the bullets won't appear >_<
Here's what the code looks like:

--- Code: ---    @MainLoop {
        SetCollisionA(240, 150, 32);
        SetCollisionB(240, 150, 24);
        if(frame==60){
            CreateShot01(GetX, GetY, 3, 60, RED12, 0);
            CreateShot01(GetX, GetY, 3, 65, RED12, 0);
            CreateShot01(GetX, GetY, 3, 70, RED12, 0);
            CreateShot01(GetX, GetY, 3, 85, RED12, 0);
            CreateShot01(GetX, GetY, 3, 90, RED12, 0);
            CreateShot01(GetX, GetY, 3, 95, RED12, 0);
            CreateShot01(GetX, GetY, 3, 100, RED12, 0);
            CreateShot01(GetX, GetY, 3, 105, RED12, 0);
            CreateShot01(GetX, GetY, 3, 110, RED12, 0);
            frame = 0;

        }   
        if(frame==20){
            CreateShot01(240, 150, 3, GetAngleToPlayer, YELLOW01, 10);
            CreateShot01(230, 150, 3, GetAngleToPlayer, YELLOW01, 10);
            CreateShot01(250, 150, 3, GetAngleToPlayer, YELLOW01, 10);
            CreateShot01(260, 150, 3, GetAngleToPlayer, YELLOW01, 10);
            CreateShot01(270, 150, 3, GetAngleToPlayer, YELLOW01, 10);
            CreateShot01(220, 150, 3, GetAngleToPlayer, YELLOW01, 10);
            CreateShot01(210, 150, 3, GetAngleToPlayer, YELLOW01, 10);
            frame = 0;
        }   
        frame++;
    }
--- End code ---
Naut:
Hmm, your collision detection should be on GetX, GetY, so even if you move the boss moves around it will still accurately detect her hitbox.

Those yellow bullets should spawn, but keep in mind that GetAngleToPlayer gets the angle from the boss to the player. So because you're not spawning the bullets on GetX, GetY, the bullet angle will probably be inaccurate. The red bullets won't spawn because when frame = 20 (when you spawn the yellow bullets), you set frame back to 0 again, so frame will never go above 20, or high enough to spawn the red ones. If you take out "frame = 0;" from the yellow bullet spawning tree, then it should run properly and spawn both red and yellow bullets, then repeat.
Halca:

--- Quote from: Naut on May 02, 2009, 07:42:15 PM ---Hmm, your collision detection should be on GetX, GetY, so even if you move the boss moves around it will still accurately detect her hitbox.

Those yellow bullets should spawn, but keep in mind that GetAngleToPlayer gets the angle from the boss to the player. So because you're not spawning the bullets on GetX, GetY, the bullet angle will probably be inaccurate. The red bullets won't spawn because when frame = 20 (when you spawn the yellow bullets), you set frame back to 0 again, so frame will never go above 20, or high enough to spawn the red ones. If you take out "frame = 0;" from the yellow bullet spawning tree, then it should run properly and spawn both red and yellow bullets, then repeat.

--- End quote ---

Oh, the yellow bullets are fine, I'm having an issue with the red ones.
Navigation
Message Index
Next page
Previous page

Go to full version