Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/triggers/level/bg_effect_on_off.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

Enables / Disables the background particles that appear when your current gamemode is Ship, UFO, Wave or Swing.

## Notes

This trigger affects the spawning of particles not their visibility, particles will not disappear or reappear instantly.
2 changes: 2 additions & 0 deletions docs/triggers/level/bg_speed.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Controls the X and Y speed of the background, relative to the camera's movement.

## Notes

The background's movement can be calculated using the formulas:
$BGMoveX = CMoveX \cdot (1 - SpeedX)$
$BGMoveY = CMoveY \cdot (1 - SpeedY)$
Expand Down
6 changes: 5 additions & 1 deletion docs/triggers/level/change_background.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Background

Changes the level's Background to a different preset. There are currently 59 BG presets.
Changes the level's Background to a different preset.

## Notes

There are currently 59 BG presets.

Only one Background change can be made per render frame. The first will trigger, while any other subsequent BG trigger is ignored until the next frame.
6 changes: 5 additions & 1 deletion docs/triggers/level/change_ground.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Ground

Changes the level's Ground to a different preset. There are currently 22 Ground presets.
Changes the level's Ground to a different preset.

## Notes

There are currently 22 Ground presets.

3 Line options exist, but the trigger cannot currently set them.

Expand Down
6 changes: 5 additions & 1 deletion docs/triggers/level/change_middleground.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Middleground

Changes the level's Middleground to a different preset. There are currently 3 MG presets.
Changes the level's Middleground to a different preset.

## Notes

There are currently 3 MG presets.

Only one Middleground change can be made per render frame. The first will trigger, while any other subsequent MG trigger is ignored until the next frame.
8 changes: 5 additions & 3 deletions docs/triggers/level/mg_speed.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

Controls the X and Y speed of the middleground.

## Notes

Middleground speed works differently for X and Y:
- X axis: movement is relative to camera movement
- Y axis: position is relative to camera position

As a side-effect, if you change the middleground's Y speed this will also instantly change the middleground's position.

The middleground's movement and position can be calculated using the formulas:
$MGMoveX = CMoveX \cdot (1 - SpeedX)$
$MGPosY = CPosY \cdot (1 - SpeedY) + OffsetY \cdot 3$
The middleground's movement and position can be calculated using the formulas:
$MGMoveX = CMoveX \cdot (1 - SpeedX)$
$MGPosY = CPosY \cdot (1 - SpeedY) + OffsetY$

For example, a speed of 1.00 makes the middleground stationary, while a speed of 0.00 matches the camera's movement.

Expand Down
4 changes: 3 additions & 1 deletion docs/triggers/level/offset_mg_y.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

Changes the middleground's current Y offset to a new value.

This change can be animated using an **Easing** for a given **Move Time**.
## Notes

Can be animated using an **Easing** for a given **Move Time**.

The offset is applied on top of the middleground's base vertical position and is not reset if the middleground's Y speed changes.

Expand Down