- Return to Touhou Danmakufu: Functions
Functions for bullet scripts.
Bullet Control Function
Function to control the bullet scripts.
SetDefault
Set the default graphic. This function must be performed before calling SetCollisionBDefault and DrawGraphicDefault.
1 Parameter 1) graphic
SetLaser
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
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, SetDefault must be called once.
SetCollisionLaser
Set the collision detection region of the laser. Before this function is called, 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, SetDefault must be called once.
DrawLaser
Draw the graphic of the laser. Before this function is called, SetLaser must be called once.
Information Functions
Functions to get information of the bullet.
GetArgument
Get the user-defined argument (7th argument of 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