Player Main Functions

From Danmakufu Wiki
Jump to: navigation, search

CreatePlayerShotA1

Arguments:
 1) x-coordinate (real)
 2) y-coordinate (real)
 3) speed (real)
 4) angle (real)
 5) damage (real)
 6) penetration power (real)
 7) bullet graphic ID (real)

The player fires the specified shot. If the player is not permitted to shoot, then this function returns void.

CallSpell

If the conditions to use a spell card are met, uses the spell card.

LoadPlayerShotData

Arguments:
 1) path of the file (char)

Loads the shot data image file. If called several times, loads each file in succession. A file cannot be loaded multiple times in a row.

ReloadPlayerShotData

Same as LoadPlayerShotData, except a file can be loaded several times. Can be used without loading through LoadPlayerShotData first.

GetSpellManageObject

Arguments:
 1) spell manage object (char)

Returns: object ID (real)

Retrieves the ID of the spell manage object. It is necessary to delete this object using ObjDelete once the spell is over.