GameMaker Touhou Engine   Home   Downloads   Documentation

_DRAW_SPELLBG_SET()


A script that starts drawing a tiled scrolling 2D background.


Returns: The instance of _SPELL_BG that's going to draw the given background. (Object)


Syntax:


_DRAW_SPELLBG_SET(img, xspd, yspd)

Arguments:


Name Value Significance
img <background> The background to draw.
xspd <integer> The horizontal scrolling speed of the background.
yspd <integer> The vertical scrolling speed of the background.

Actions:


Create an instance of _SPELL_BG and set it's local variables according to the arguments.