Skip to main content

Temp. Triggers & Projectiles

Events for spawning temporary triggers and projectiles.

Actions​

Preload Projectile​

Setup a projectile type to later use via launch projectile.
Preload Projectile
Projectile
Presets
Projectile Slot
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Max Amount
10
Sprite Sheet
Player
Palette Slot
AUTO
Life Time
1
Animation Index
0
Loop Animation
Destroy Outside Screen
Destroy On Hit
Collision Type
Center Collisions
Collision Group
Group 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
  • Projectile Slot: The projectile slot to use.
  • Max Amount: The maximum amount of this projectile to preload, if you try to shoot more, nothing will happen.
  • Sprite Sheet: The sprite to use for rendering the projectile.
  • Palette Slot: The palette slot you want to use.
  • Life Time: The amount of time in seconds that the projectile will live for.
  • Animation Index: The animation index from the sprite sheet.
  • Loop Animation: Set if animation should loop.
  • Destroy Outside Screen: Set if the projectile should be destroyed after its outside screen.
  • Destroy On Hit: Set if the projectile should be destroyed after its first collision.

Destroy All Projectiles​

Destroy all projectiles on screen.
Destroy All Projectiles
Projectile Slot
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
  • Projectile Slot: The projectile slot to use.

Launch Projectile​

Launch a projectile from an actor in a specified direction. When a projectile collides with other actors it will trigger their OnHit scripts.
Launch Projectile
Source
Presets
Projectile Slot
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Source
Actor 1
Speed
1
Offset X
0
Offset Y
0
Flip X
False
Flip Y
False
Launch At
Fixed Direction
Direction
  • Projectile Slot: The projectile slot to use.
  • Source: The actor to launch the projectile from.
  • Speed: The movement speed.
  • Offset X: The horizontal offset from the source actors position to start launching the projectile.
  • Offset Y: The vertical offset from the source actors position to start launching the projectile.
  • Launch At: Direction mode for the projectile launch.
  • Direction: The direction to launch the projectile. Can either be a fixed direction or based on an actor's current direction.

Attach Projectile Script​

Run the specified script when a projectile collides with the scene. Temp 0 = Tile X, Temp 1 = Tile Y, Temp 2 = Tile Type.
Attach Projectile Script
Projectile Slot
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Run the specified script whenever the actor overlaps a tile type in the scene. Temp 0 = Tile X, Temp 1 = Tile Y, Temp 2 = Tile Type.
On Collide
On Collide
Add Event
  • Projectile Slot: The projectile slot to use.
  • On Collide: The script to run when the timer is triggered.

Conditions​

OnCollide: If Actor Overlaps Projectile​

Conditionally run part of the script if we overlapped a projectile of the selected type. Only useful inside OnCollide scripts.
OnCollide: If Actor Overlaps Projectile
Only works inside OnCollide scripts.
Projectile Slot
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
True
Add Event
  • Projectile Slot: The projectile slot to use.

OnCollide: If Actor Overlaps Temp. Trigger​

Conditionally run part of the script if we overlapped a Temp. Trigger of the selected type. Only useful inside OnCollide scripts.
OnCollide: If Actor Overlaps Temp. Trigger
Only works inside OnCollide scripts.
Temp. Trigger
1
2
3
4
True
Add Event
  • Temp. Trigger: The temporary trigger slow to use, you can spawn up to four at once.

Sprite​

Projectile Type Send in Front Actor​

Send the projectile sprites in front of the selected actor so it renders on top of it.
Projectile Type Send in Front Actor
Projectile Slot
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Actor
Actor 1
  • Projectile Slot: The projectile slot to use.
  • Actor: The actor you want to use.

Projectile Type Send Behind Actor​

Send the projectile sprites behind the selected actor so it renders below it.
Projectile Type Send Behind Actor
Projectile Slot
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Actor
Actor 1
  • Projectile Slot: The projectile slot to use.
  • Actor: The actor you want to use.

Projectile Type Set Depth​

Set the projectile depth on the rendering queue. From -255 to 255. Lower values means rendering higher on the queue.
Projectile Type Set Depth
Projectile Slot
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Value
0
Actors with lower depth are display in front of those with higher depth.
  • Projectile Slot: The projectile slot to use.
  • Value: The value you want to set.

Projectile Type Set Animation​

Set the projectile animation.
Projectile Type Set Animation
Projectile Slot
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Animation Index
0
Loop Animation
  • Projectile Slot: The projectile slot to use.
  • Animation Index: The animation index from the sprite sheet.
  • Loop Animation: Set if animation should loop.

Temporary Triggers​

Spawn Temp. Trigger​

Spawn a Temporary Trigger at the given location with the given size for the given amount of time.
Spawn Temp. Trigger
Temp. Trigger
1
2
3
4
X
0
Y
0
Width
8
Height
8
Life Time
0.2
Destroy On First Overlap
Collision Group
Group 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
  • Temp. Trigger: The temporary trigger slow to use, you can spawn up to four at once.
  • X: The horizontal position.
  • Y: The vertical position.
  • Width: The total width.
  • Height: The total height.
  • Life Time: The amount of time in seconds that the temporary trigger will live for.
  • Destroy On First Overlap: If the temporary trigger will be destroyed when the first overlap happens, it will ignore the life time if it's longer.
  • Collision Group: The collision group that should be used when registering collisions with actors.