GameMaker Touhou Engine   Home   Downloads   Documentation

_ITEM_CREATE()


A script that creates an item object.


Returns: id of the created item. (Integer)


Syntax:


_ITEM_CREATE(ob, _x, _y, spd, dir)

Arguments:


Name Value Significance
ob <object> The item to create. (Must inherit from _ITEM_PARENT)
_x <integer> The X-coordinate to create the item at.
_y <integer> The Y-coordinate to create the item at.
spd <integer> The initial movement speed of the item.
dir <integer(0-359)> The direction the item moves in when created.

Actions:


Create an instance of the given object at the given position, and set it's movement speed and direction to the given ones.