FANDOM


 
(One intermediate revision by one user not shown)
Line 1: Line 1:
<font size='8'>This wiki has moved!</font><hr/><font size='6'>Please visit <b>touhou<!-- -->wiki<!-- -->.<!-- -->net</b></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]]

Latest revision as of 08:24, January 27, 2011


Functions for bullet scripts.


Bullet Control Function Edit

Function to control the bullet scripts.

SetDefault Edit

Set the default graphic. This function must be performed before calling SetCollisionBDefault and DrawGraphicDefault.

1 Parameter
    1) graphic

SetLaser Edit

Make it a curved laser. This function is used with SetCollisoinLaser and DrawLaser. The longer it is, the heavier the process is.

3 Parameters
    1) laser width
    2) laser length (in frame)
    3) graphic

SetCollisionB Edit

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 Edit

Set the collision detection region of the built-in bullet. Before this function is called, SetDefault must be called once.

SetCollisionLaser Edit

Set the collision detection region of the laser. Before this function is called, SetLaser must be called once.

SetBombResist Edit

Make it enable to resist against bomb.

End Edit

Delete the bullet and end the bullet script.


Drawing Functions Edit

Functions to draw graphics for bullet scripts only.

DrawGraphicDefault Edit

Draw the graphic of the built-in bullet. Before this function is called, SetDefault must be called once.

DrawLaser Edit

Draw the graphic of the laser. Before this function is called, SetLaser must be called once.


Information Functions Edit

Functions to get information of the bullet.

GetArgument Edit

Get the user-defined argument (7th argument of CreateShotFromScript).

Return value
    user-defined argument

OnDelay Edit

Get whether on delaying or not.

Return value
    true : on delaying
    false: not on delaying

GetDelayTime Edit

Get the left frames of the delay frames.

Return value
    left frames

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