๐Ÿ’€Re-Spawning

a.k.a placing a Trigger Zone, and creating your first Link

But whatโ€™s the problem with spawning anywhere? The water doesnโ€™t kill me. Not yet it doesnโ€™t โ€” but we can fix that. Letโ€™s make a kill plane; think of it as The Floor Is Lava ๐Ÿ”—

Creating a kill-plane is easy, we just need to add one more layer to the component; a link.

Linking is basically like the gameโ€™s thought process โ€” if X happens, then I respond with Y.

You can add as many links to things as you want, to make all kinds of cool stuff happen, but for now letโ€™s stick to one.

To kill-plane the water, you can select any entity that touches it โ€” for this tutorial, weโ€™ve just put some floating rubble. Add the โ€˜Trigger Zoneโ€™ component to it, which should make a bright pink box appear around it. Mess around with the size of the box to make sure it covers the whole level โ€” 200 will usually do it. You now have a trigger zone ๐Ÿ—บ๏ธ

Next go to Linking Mode in the top toolbar, and an orange box will now appear on the entity. Click the orange + and this will bring up a list of possible responses that the game can make, according to what components you have attached to the entity. For Trigger Zone, the only options are for entering (or touching) and leaving the zone.

Select โ€˜Entered trigger zone,โ€™ which will add to your cursor what looks like rope. This is the link itself, which we use to connect objects and actions. For this example, we want to click on the Players icon (what looks like a little orange person) in the top toolbar, and select โ€˜Respawn.โ€™ We must also decide who should respawn, so we pick โ€˜Triggering playerโ€™ so that only the person who fell in the water is respawned ๐ŸŒŠ

With that link done, our kill-plane is set up and ready to kill! Finally, lower the whole entity on the Z axis (straight down) so the pink box is only just visible above the water. This is so you donโ€™t get killed if you go down a slope in the level that is the same height as the plane.

You can also lower the trigger zone box without changing the position of the entity itself with the Position (m) settings in the components menu. For straight up or down, the Z axis is your guy!

Last updated