Stage Articles

From Rivals of Aether Unofficial Workshop Manual

Stage articles behave similarly to normal articles, and this page will explain the differences between the two. For a reference on how articles work, check the Articles page.

Each custom stage has access to 3 types of stage articles: obj_stage_article, obj_stage_article_platform, and obj_stage_article_solid. The type of article created as well as the script set it uses (article1_init, article1_update, etc.) is dependent on spawners placed in the stage editor. The script set used is determined by the spawner number and the type of article is changeable in the editor’s properties menu. You can check which script set an article is using with the get_article_script() function.

In addition to all of the variables shown in the normal articles page, stage articles also have these variables:

Variable Description
spawn_variables An array of 8 variables passed from the spawner in the stage editor (ARG0 – ARG7).
parallax_x Horizontal parallax, centered on the center of the stage.
parallax_y Vertical parallax, centered on the center of the stage.

If you’re spawning a stage article using the instance_create() function, you can add an optional argument to the end of it to change which script set the spawned article uses. For example, if you want to spawn a stage platform that uses article5_init, the function would look like this:

instance_create(x, y, "obj_stage_article_platform", 5);

Cookies help us deliver our services. By using our services, you agree to our use of cookies.