x


[Closed] Script Platform to cause death

Super new and trying to learn some stuff about Unity using the 2D platformer sample. I'm trying to create a platform that kills the player when they touch it, but if I make the boxCollider a trigger and use the DeathTrigger script, the character falls through the platform before they die. I've tried to use onCollisionEnter/Stay on the platform to send the same onDeath message, but it seems that the character would take those functions, and I'd prefer to tie the onDeath message to the platform instead of the character. Any suggestions?

thanks

more ▼

asked Jun 14 '11 at 02:10 AM

ZebraCakes gravatar image

ZebraCakes
1 1 2 2

(comments are locked)
10|3000 characters needed characters left

The question has been closed Jun 14 '11 at 04:13 AM by ckfinite for the following reason:

Duplicate Question


0 answers: sort voted first

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x81
x77

asked: Jun 14 '11 at 02:10 AM

Seen: 468 times

Last Updated: Jun 14 '11 at 02:10 AM