FANDOM


(Replaced content with "<font size="6">Touhou Wiki is under attack by the corrupted Wikia staff, and is no longer located at Wikia. Please visit touhouwiki.net for the new Touhou Wiki.</font>")
Line 1: Line 1:
[[File:Personalappeal.png|660px|link=Personal Appeal]]
+
<font size="6">Touhou Wiki is under attack by the corrupted Wikia staff, and is no longer located at Wikia. Please visit touhouwiki.net for the new Touhou Wiki.</font>
*Return to [[Touhou Danmakufu: Functions]]
 
----
 
 
Functions for [[Touhou Danmakufu: Child Scripts#Bullet Scripts | bullet scripts]].
 
 
 
== Bullet Control Function ==
 
 
Function to control the bullet scripts.
 
 
=== SetDefault ===
 
 
Set the default graphic. This function must be performed before calling '''[[Touhou Danmakufu: Bullet Script Functions#SetCollisionBDefault | SetCollisionBDefault]]''' and '''[[Touhou Danmakufu: Bullet Script Functions#DrawGraphicDefault | DrawGraphicDefault]]'''.
 
 
''1 Parameter''
 
1) graphic
 
 
=== SetLaser ===
 
 
Make it a curved laser. This function is used with '''[[Touhou Danmakufu: Bullet Script Functions#SetCollisoinLaser | SetCollisoinLaser]]''' and '''[[Touhou Danmakufu: Bullet Script Functions#DrawLaser | DrawLaser]]'''. The longer it is, the heavier the process is.
 
 
''3 Parameters''
 
1) laser width
 
2) laser length (in frame)
 
3) graphic
 
 
=== SetCollisionB ===
 
 
Set the collision detection circle. Some collision detection circles can be registered.
 
 
''3 Parameters''
 
1) x-coordinate of the center
 
2) y-coordinate of the center
 
3) radius
 
 
=== SetCollisionBDefault ===
 
 
Set the collision detection region of the built-in bullet. Before this function is called, '''[[Touhou Danmakufu: Bullet Script Functions#SetDefault | SetDefault]]''' must be called once.
 
 
=== SetCollisionLaser ===
 
 
Set the collision detection region of the laser. Before this function is called, '''[[Touhou Danmakufu: Bullet Script Functions#SetLaser | SetLaser]]''' must be called once.
 
 
=== SetBombResist ===
 
 
Make it enable to resist against bomb.
 
 
=== End ===
 
 
Delete the bullet and end the bullet script.
 
 
 
== Drawing Functions ==
 
 
Functions to draw graphics for bullet scripts only.
 
 
=== DrawGraphicDefault ===
 
 
Draw the graphic of the built-in bullet. Before this function is called, '''[[Touhou Danmakufu: Bullet Script Functions#SetDefault | SetDefault]]''' must be called once.
 
 
=== DrawLaser ===
 
 
Draw the graphic of the laser. Before this function is called, '''[[Touhou Danmakufu: Bullet Script Functions#SetLaser | SetLaser]]''' must be called once.
 
 
 
== Information Functions ==
 
 
Functions to get information of the bullet.
 
 
=== GetArgument ===
 
 
Get the user-defined argument (7th argument of '''[[Touhou Danmakufu: Common Functions#CreateShotFromScript | CreateShotFromScript]]''').
 
 
''Return value''
 
user-defined argument
 
 
=== OnDelay ===
 
 
Get whether on delaying or not.
 
 
''Return value''
 
true : on delaying
 
false: not on delaying
 
 
=== GetDelayTime ===
 
 
Get the left frames of the delay frames.
 
 
''Return value''
 
left frames
 
 
----
 
*Return to [[Touhou Danmakufu: Functions]]
 
[[Category:Touhou Danmakufu]]
 

Revision as of 15:26, January 8, 2011

Touhou Wiki is under attack by the corrupted Wikia staff, and is no longer located at Wikia. Please visit touhouwiki.net for the new Touhou Wiki.

Community content is available under CC-BY-SA unless otherwise noted.