GameMaker Touhou Engine   Home   Downloads   Documentation

_FAMILIAR_CREATE()


A script that creates a familiar object.


Returns: id of the created familiar. (Reference to Object)


Syntax:


_ITEM_CREATE(xx, yy, attached, obj, alrm)

Arguments:


Name Type Significance
xx Integer The horizontal offset between the familiar and it's master.
yy Integer The vertical offset between the familiar and it's master.
attached Reference to Object The object that the familiar is attached to.
obj Reference to Object The familiar to create. (Must inherit from _ENEMY_FAMILIAR_PARENT or _PLAYER_FAMILIAR_PARENT)
alrm* Non-negative Integer The amount of steps to set the Alarm 11 of the familiar to.

*Can be set to noone for the script to ignore it.