Skip to main content

Temp. Triggers & Projectiles

Actions

Setup Projectile Type

Setup a projectile type to later use via launch projectile.
Setup Projectile Type
Projectile Slot
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Max Amount
10
Sprite Sheet
Player
Palette Slot
Auto Select (Actor asignated slot)
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.

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 actorso 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 actorso it renders bellow ir.
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.

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
0
Height
0
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.