| ~Hakurei Shrine~ > Rika and Nitori's Garage Experiments |
| I'm really lost @_@ |
| << < (3/12) > >> |
| Naut:
It takes them out of the folder you designated in your script. So since you said: --- Code: ---let BossCutIn = ".\img\moetancut.png"; --- End code --- It will move into the script folder (you said .\ at the start, I think this gets the script folder when declared outside of square braces...? Not sure...), move into the img folder, then look for a file called moetancut.png. If you'd like to base everything on the current script (which is what most people do), you could have Danmakufu look for the image like this: --- Code: ---let BossCutIn = GetCurrentScriptDirectory~"img\moetancut.png"; --- End code --- Which would find the path of the current script, move into the subfolder img from the folder that this script is in, then locate moetancut.png. Good luck with your bullet script~. |
| Halca:
Ok, my bullets are doing great so far, I was just wondering though... How would you create a semicircle pattern that bursts from a point? Kind of would look like this: / / | \ \ / / | \ \ / / | \ \ I hope that makes sense >_< |
| Naut:
I won't mess with looping structures since your pretty new, so here's the bare-bones way: --- Code: ---CreateShot01(GetX, GetY, 3, angle - 20, RED01, 0); CreateShot01(GetX, GetY, 3, angle - 10, RED01, 0); CreateShot01(GetX, GetY, 3, angle, RED01, 0); CreateShot01(GetX, GetY, 3, angle + 10, RED01, 0); CreateShot01(GetX, GetY, 3, angle + 20, RED01, 0); --- End code --- This creates a 5 bullets, each aimed slightly off from eachother (notice the direction parameter), and will cause a fanning pattern, hopefully like the one you're looking for. |
| Halca:
I tried to add the fanning pattern, but the script won't run. Here's my current @MainLoop: --- Code: --- @MainLoop { SetCollisionA(240, 150, 32); SetCollisionB(240, 150, 24); if(frame==60){ CreateShot01(GetX, GetY, 3, -20, RED12, 0) CreateShot01(GetX, GetY, 3, -15, RED12, 0) CreateShot01(GetX, GetY, 3, -10, RED12, 0) CreateShot01(GetX, GetY, 3, -5, RED12, 0) CreateShot01(GetX, GetY, 3, 0, RED12, 0) CreateShot01(GetX, GetY, 3, 5, RED12, 0) CreateShot01(GetX, GetY, 3, 10, RED12, 0) CreateShot01(GetX, GetY, 3, 15, RED12, 0) CreateShot01(GetX, GetY, 3, 20, RED12, 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 --- Where did I go wrong? Another thing- when I try to set the LastSpell to false like this: --- Code: ---LastSpell(false); --- End code --- It won't run properly. |
| Cyclone722:
Ok, I'm not too good at this myself. But your bullet angles are wrong, you can't have negitive angles. and Naut seems to use a variable to control the angle here. Try this. --- Code: ---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); } --- End code --- This will shoot a fan of bullets with the center one going straight down. Your frame = 0; should be in the attack with (frame==60) if you call it before, frame will never reach 60 and the red shots won't be fired. |
| Navigation |
| Message Index |
| Next page |
| Previous page |