GameMaker Touhou Engine   Home   Downloads   Documentation

_SPELL_BG


An object that draws a tiled scrolling 2D background, usually used during spell cards.


Locals:


Name Value/Default Significance
_ALPHA <real>/0.1 The alpha of the background image to draw.
_ALPHA_INC <real>/0.05 (<0): The background is fading out. (>0): The background is fading in.
_IMAGE <background>/noone The background to draw.
_XSCROLL <integer>/0 The horizontal scrolling speed of the background.
_YSCROLL <integer>/0 The vertical scrolling speed of the background.
_DX <integer>/x The X-coordinate of the origin point to draw the background from.
_DY <integer>/y The Y-coordinate of the origin point to draw the background from.

Events:


Trigger # Actions
Create 1 Set local variables to default values.
Step 1 Increase the alpha if it's between 0 and 1. If the alpha is 0, destroy self. Scroll the background by increasing the origin point's coordinates by the given amounts.
Draw 1 Draw _IMAGE using draw_background_tiled() with the given alpha.