| Danmakufu FAQ/Q&A/Screenshot Thread |
|
Forum Index - Hobbies - Game Creation - Danmakufu FAQ/Q&A/Screenshot Thread |
|
Pages: 1 2  |
|
|
|
| Posted on 2011-02-05 01:55:50 PM |
Link | Quote |
|
Well, I have this problem now, I want to make my boss to use all of his spellcards in one script. To my knowledge, this can be used making a Plural script. But I don't know if I type something wrong or something,
Code#TouhouDanmakufu [Plural]
#Title[Jack]
#Text[]
#PlayLevel[Normal]
#Image[]
#BackGround[]
#BGM[]
#Player[FREE]
#ScriptVersion[2]
#ScriptPathData
#ScriptPath[.\Jack01.txt]
#ScriptNextStep
#ScriptPath[.\Jack02.txt]
#ScriptNextStep
#ScriptPath[.\Jack03.txt]
#EndScriptPathData
This is the entire script, all of the Spellcards work correctly.
|
|
| Posted on 2011-02-05 02:10:58 PM |
Link | Quote |
|
Code#TouhouDanmakufu[Plural]
#Title[Jack]
#Text[]
#BGM[]
#BackGround[]
#PlayLevel[Normal]
#Player[FREE]
#ScriptVersion[2]
#ScriptPathData
#ScriptPath[.\Jack01.txt]
#ScriptNextStep
#ScriptPath[.\Jack02.txt]
#ScriptNextStep
#ScriptPath[.\Jack03.txt]
#EndScriptPathData
Try using this. I'm going to guess that the error was caused by your weird spacing, or by a typo in the attack names. I can't really debug a Plural script any further than that, sorry!
|
|
| Posted on 2011-02-06 03:20:08 PM |
Link | Quote |
|
|
What's the code to make the bullets bounce from boundaries?
|
|
| Posted on 2011-02-06 03:56:06 PM |
Link | Quote |
|
Code
task CreateShotBounce(x,y,speed,angle,graphic,delay)
{
let max_bounce = 1;
let obj = Obj_Create(OBJ_SHOT); //Creates the shot ID
Obj_SetPosition(obj,x,y);
Obj_SetSpeed(obj,speed);
Obj_SetAngle(obj,angle);
ObjShot_SetGraphic(obj,graphic);
ObjShot_SetDelay(obj,delay);
Wait(delay);
while(!Obj_BeDeleted(obj)) //While shot still exists...
{
if(Obj_GetX(obj) < GetClipMinX || Obj_GetX(obj) > GetClipMaxX && max_bounce > 0) //Hitting left or right wall...
{
Obj_SetAngle(obj,180-Obj_GetAngle(obj));
//PlaySE(sfx); (if you want a bounce sound)
max_bounce--;
}
if(Obj_GetX(obj) < GetClipMinX || Obj_GetX(obj) > GetClipMaxX && max_bounce > 0) //Hitting top or bottom wall...
{
Obj_SetAngle(obj,-Obj_GetAngle(obj));
//PlaySE(sfx);
max_bounce--;
}
if(max_bounce <= 0) //If can no longer bounce...
{
break; //Break out of the while loop
}
yield;
}
}
|
|
| Posted on 2011-02-07 05:38:33 PM |
Link | Quote |
|
When trying to make a familiar spawn, it drops me an error. Specifically on line 65.
http://pastebin.com/enZQ3qh8
|
|
| Posted on 2011-02-07 08:53:49 PM |
Link | Quote |
|
The familiar doesn't know what "dir" is because it's technically a different enemy script. Try passing the value of "dir" using the enemy argument (the last parameter when you create the enemy). Within the enemy script, you can then do:
Codelet dir = GetArgument;
If you want to send even more variables over, you can use an array as the argument, then just use GetArgument[index];
|
|
| Posted on 2011-02-08 11:46:18 PM |
Link | Quote |
|
Hey Lucas, what software you use to record Danmakufu?
I've heard a lot of FRAPS, but is simply junk, I tried it and didn't work at all...
|
|
| Posted on 2011-02-09 01:03:41 AM |
Link | Quote |
|
|
Um actually, I would use FRAPS but I simply do not have the RAM for it. It's pretty much the best you can get if your computer can run it. Camstudio isn't that bad either? I really haven't had success with recording Danmakufu unfortunately, but you could ask this guy instead.
|
|
| Posted on 2011-02-10 03:08:38 AM |
Link | Quote |
|
It is possible to make an Obj_Bullet to create an explosion after stopping?
If it is possible, how is it done?
Also, forgot to say, but for the Bounce bullets code, Where I modify to make the bullets to bounce on all boundaries except the bottom one?
Ignore the later, I've already figured out how to make it
|
| Last edited on 2011-02-11 10:43:27 PM by Teff007. |
|
|
Pages: 1 2  |
|
|
|
|
Forum Index - Hobbies - Game Creation - Danmakufu FAQ/Q&A/Screenshot Thread |