GameMaker Touhou Engine   Home   Downloads   Documentation

_DRAW_COLLECTIBLE()


A script that draws collectibles in the same vein as the player's lives or bombs on the HUD.


Returns: Void


Syntax:


_DRAW_COLLECTIBLE(cx, cy, n, m, frg, spr)

Arguments:


Name Type Significance
cx Integer The X-coordinate to draw from.
cy Integer The Y-coordinate to draw from.
n Integer How many collectibles of this kind the player has.
m Integer How many collectibles of this kind the player can have.
frg Integer How many "pieces" of this kind of collectible the player has. (can be left at 0)
spr* Reference to Sprite The sprite to use.

*Must be in the same format as _HEART_SPRITE and _BOMB_SPRITE.