Hey. I'm currently stuck on dying.
I know it sounds funny, but I'm wondering how characters " Die " in game.
See, normally if you jump into lava or you jump off the edge of the map, you end up getting a message " Oops, you did something dangerous, press space to respawn "
So, I was wondering, what is it that "triggers" the death of the character. What code is it that tells the computer to give the death message and respawn when it jumps into lava?
I'm trying to work on a simple numbered HP. No bars or fancy colors hanging above the characters' head but a simple number HP that you can view when you press a button.
I think I have the Hp thing figured out, I'm just stuck on the " DIE " part. My code will say something like " When HP reaches 0 , " DIE " , its the DIE trigger that I need.
Anyone an help?
Thanks so much in advance.
Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.
In the meantime please join the new Discord Server!
If you have any questions please e-mail me through the Platinum Arts website.
In the meantime please join the new Discord Server!
If you have any questions please e-mail me through the Platinum Arts website.
Death
Re: Death
viewtopic.php?f=15&t=1382
I have a very similar question... I think what we both really want is something like:
but WHAT is the trigger name?!
I have a very similar question... I think what we both really want is something like:
Code: Select all
death_trigger [
(change map code goes here)
]
-
- Support Team
- Posts: 2734
- Joined: January 13th, 2010, 12:42 pm
- Name: Timothy
- IRC Username: I use Steam
- Location: Looking over your shoulder...
- Contact:
Re: Death
Trigger name? No such thing. There are trigger types and level triggers that will be needed. Requirements would be some sort of trigger for the area of the death, (if that's possible with your map as I haven't played it
) so that it'll change maps. However, a fade to black animation would be interesting. I suppose it's possible, but I've never done it.
But creating text would be easy. Along with the teleporting, you can have a text box appear before you teleport. Take a look at some of the coding tutorials in the Tutorials and Resources section
Arcones

But creating text would be easy. Along with the teleporting, you can have a text box appear before you teleport. Take a look at some of the coding tutorials in the Tutorials and Resources section

Arcones


Want a user bar like this one? PM Leo!