GameMaker Touhou Engine   Home   Downloads   Documentation

_FAMILIAR_CREATE()


A script that creates a familiar object.


Returns: id of the created familiar. (Integer)


Syntax:


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

Arguments:


Name Value 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 <object> The object that the familiar is attached to.
obj <object> The familiar to create. (Must inherit from _ENEMY_FAMILIAR_PARENT or _PLAYER_FAMILIAR_PARENT)
alrm* <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.


Actions:


Create an instance of the given object relative to the position of attached, and set it's variables to the given ones.