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.

Death

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
carter472
Member
Member
Posts: 14
Joined: June 18th, 2009, 1:34 am
Name: Adam

Death

Post by carter472 »

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.
AName
Member
Member
Posts: 14
Joined: June 23rd, 2010, 9:03 am
Name: Andrew

Re: Death

Post by AName »

viewtopic.php?f=15&t=1382
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)
]
but WHAT is the trigger name?!
arcones
Support Team
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

Post by arcones »

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 :geek:
Image
Want a user bar like this one? PM Leo!
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: Death

Post by Leo_V117 »

Uh... add this to the RPG_game.cfg: death = [nap]

so you need the "when health reaches 0" [death]
Locked