Player death script

Hi everybody, I want some help to make a player death script (using lava on my platformer), but with
Unity Bolt.
DO NOT USE ANSWERS ABOUT C#. So please tell me HOW to make player death (when touching lava, and WITHOUT enemies), and using BOLT script.

Detail: I’ll not use enemies on my game.

OK then I will move this thread to visual scripting.

But Bolt is visual scripting right?

(hint: it is bolt, and it’s free). If you’re using some older version, I suggest you switch to Unity’s up to date bolt. It is owned by Unity. This is done for you with package manager.

Im using standart Bolt, not Bolt enhanced

You should use Unity’s Visual Scripting, not (old) bolt. They are the same product but renamed and improved.

There isn’t a scenario that exists where using bolt is a good idea vs using Visual Scripting (which used to be called bolt).

IT DOSEN’T MATTER FOR ME, I USE BOLT IF I WANT, YOU CAN’T CONTROL MY LIFE! AND IF YOU DELETE MY ACCOUNT… THEN I’LL BE BACK SOON. |:(

this should work FYI make a Player heath variable and a die image if you want and a lose scene

As hippocoder already politely tried to tell you, bolt and Unity Visual Scripting are the same thing. Unity acquired bolt some time ago. They renamed it to Unity Visual Scripting and it is free. It is an upgrade, not a downgrade.

If you don’t want to take that advise that’s totally up to you, none is forcing you. but you don’t have to go caps locking towards someone that’s trying to help you. I would’ve given you the same advise for that matter. Please answer in a polite manner. If you don’t then there is a chance that people are less likely to help you.

1 Like

From your question I’m assuming you are using a 2D game, then try using a Box Collider 2D with Is Trigger checked on the Lava sprite and a OnTriggerEnter2D or OnTriggerStay2D for triggering a damage animation/action.

This should be enough as a “Hint” to your problem.