- Home /
Make a Player Die on Collision { Urgent }
So basically Me and a few friends have been working on a Unity 3D project. We are nearing the End of our due date and we desperately need a direction to head in. Our game is a simple 3d game in which you ( Player ) are standing on a Platform in water. Straight ahead, We have cubes Spawning Constantly. There is only one problem that we have. We need to make a Script to attach to the Cubes so that when they touch the player ( The player fails to Dodge the cube ) They die on collision with the cube. We do not expect any scripts to be made for us but just a direction we can head in to get us going. Thanks guys and I hope to hear from you soon as this is Urgent
The "urgent" in your title is unnecessary; no one's problems here are really more urgent than anyone else's- and if no grownups are under contract to pay you do what you're doing then it's not even really a real deadline.
Also, Unity ships with a free-for-the-picking demo game in which things die when something hits them, have you even looked at any of the scripts you've already been given?
Answer by paulygons · Nov 25, 2013 at 02:07 AM
This seems similar, except you need to execute different code than the example's destroy. Also, maybe use Collider.OnCollisionEnter instead of trigger. Good luck!
Your answer
Follow this Question
Related Questions
On Collision, Create a Cube? 1 Answer
A node in a childnode? 1 Answer
Collision problem 0 Answers
How do I get rid of white lines when objects collide? 1 Answer
Colliders with JS only 2 Answers