Banner
Views: 236,223,477
Time: 2013-05-21 11:12:04 PM
6 users online: o Ladida, leod, Randomiser, SilverDeoxys563, Yoshi88, Z0mbie1337 - Guests: 16 - Bots: 9Users: 22,858 (1,278 active)
Latest: FUNKY kong ending
Tip: Proofread your message boxes for spelling and grammar mistakes.
Danmakufu FAQ/Q&A/Screenshot Thread
Forum Index - Hobbies - Game Creation - Danmakufu FAQ/Q&A/Screenshot Thread
Pages: « 1 2 »
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.
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!
What's the code to make the bullets bounce from boundaries?
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; } }
When trying to make a familiar spawn, it drops me an error. Specifically on line 65.

http://pastebin.com/enZQ3qh8
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:
Code
let dir = GetArgument;

If you want to send even more variables over, you can use an array as the argument, then just use GetArgument[index];
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...
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.
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

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2013 - SMW Central
Legal Information - Link To Us


Total queries: 27

Menu